From 024388f50b953cd49f3b1f9feafb1a449f4fe3f5 Mon Sep 17 00:00:00 2001 From: Chris Schlaeger Date: Sun, 31 Aug 2014 22:00:35 +0200 Subject: New: 'rename' command no longer needs --name option --- lib/postrunner/Main.rb | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/postrunner/Main.rb b/lib/postrunner/Main.rb index f352a14..2f2092f 100644 --- a/lib/postrunner/Main.rb +++ b/lib/postrunner/Main.rb @@ -83,9 +83,9 @@ EOT end opts.separator "" - opts.separator "Options for the 'import' and 'rename' command:" + opts.separator "Options for the 'import' command:" opts.on('--name name', String, - 'Name or rename the activity to the specified name') do |n| + 'Name the activity to the specified name') do |n| @name = n end @@ -200,6 +200,9 @@ EOT when 'records' @activities.show_records when 'rename' + unless (@name = args.shift) + Log.fatal "You must provide a new name for the activity" + end process_activities(args, :rename) when 'show' if args.empty? -- cgit v1.2.3