# File lib/mercenary/command.rb, line 191 def add_default_options(opts) option 'show_help', '-h', '--help', 'Show this message' option 'show_version', '-v', '--version', 'Print the name and version' option 'show_backtrace', '-t', '--trace', 'Show the full backtrace when an error occurs' opts.on("-v", "--version", "Print the version") do puts "#{name} #{version}" exit(0) end opts.on('-t', '--trace', 'Show full backtrace if an error occurs') do @trace = true end opts.on_tail("-h", "--help", "Show this message") do puts self exit end end