lib/ticketmaster/cli/init.rb in ticketmaster-0.3.4 vs lib/ticketmaster/cli/init.rb in ticketmaster-0.3.6
- old
+ new
@@ -13,11 +13,11 @@
}
helptext = lambda {
helpmsg = "\nAvailable commands:\n"
commands.sort.inject(helpmsg) { |mem, cmd| mem << "\t#{cmd.join("\t\t")}\n" }
- helpmsg << "\nSee 'ticket help COMMAND' for more information on a specific command."
+ helpmsg << "\nSee 'tm help COMMAND' for more information on a specific command."
}
ARGV << '--help' if ARGV.length == 0
options = {:original_argv => ARGV.dup}
@@ -29,11 +29,11 @@
options[:config] = File.expand_path('~/.ticketmaster.yml')
end
begin
OptionParser.new do |opts|
- opts.banner = 'Usage: ticket [options] COMMAND [command_options]'
+ opts.banner = 'Usage: tm [options] COMMAND [command_options]'
opts.separator ''
opts.separator 'Options:'
opts.on('-c', '--config CONFIG', 'Use CONFIG as the configuration file. default: ~/.ticketmaster.yml') do |c|
options[:config] = c
@@ -57,10 +57,10 @@
puts helptext.call
exit
end
end.order!
rescue OptionParser::MissingArgument => exception
- puts "ticket #{ARGV.join(' ')}\n\n"
+ puts "tm #{ARGV.join(' ')}\n\n"
puts "Error: An option was called that requires an argument, but was not given one"
puts exception.message
end
command = ARGV.shift