bin/sauce in sauce-0.12.5 vs bin/sauce in sauce-0.12.6

- old
+ new

@@ -22,14 +22,19 @@ cmd.program_version = [0, 1, 0] cmd.add_command(CmdParse::HelpCommand.new) # configure - configure = CmdParse::Command.new('configure', false) + class ConfigureCommand < CmdParse::Command + def usage + "Usage: #{commandparser.program_name}configure USERNAME ACCESS_KEY" + end + end + configure = ConfigureCommand.new('configure', false) configure.short_desc = "Configure Sauce OnDemand credentials" configure.set_execution_block do |args| if args.length < 2: - puts "Usage: sauce configure USERNAME ACCESS_KEY" + puts configure.usage exit 1 end username = args[0] access_key = args[1] dir = File.join(File.expand_path("~"), ".sauce")