Method: Boson::Runner.display_command_help

Defined in:
lib/boson/runner.rb

.display_command_help(cmd) ⇒ Object



40
41
42
43
44
45
46
47
48
# File 'lib/boson/runner.rb', line 40

def self.display_command_help(cmd)
  puts "Usage: #{app_name} #{cmd.name} #{cmd.basic_usage}".rstrip, ""
  if cmd.options
    puts "Options:"
    cmd.option_parser.print_usage_table(no_headers: true)
    puts ""
  end
  puts "Description:\n  #{cmd.desc || 'TODO'}"
end