diff options
author | Chris Schlaeger <chris@linux.com> | 2014-08-31 22:00:35 +0200 |
---|---|---|
committer | Chris Schlaeger <chris@linux.com> | 2014-08-31 22:00:35 +0200 |
commit | 024388f50b953cd49f3b1f9feafb1a449f4fe3f5 (patch) | |
tree | 713357fde2c52e11145f69b2bc420959e21fdada | |
parent | a42aecfbc1c890baae64e5eda720e5a2836c26e3 (diff) | |
download | postrunner-024388f50b953cd49f3b1f9feafb1a449f4fe3f5.zip |
New: 'rename' command no longer needs --name option
-rw-r--r-- | lib/postrunner/Main.rb | 7 |
1 files 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? |