class Thor

Public Class Methods

command_help(shell, command_name) click to toggle source
# File lib/dnsblim/thor.rb, line 4
def command_help(shell, command_name)
  meth    = normalize_command_name(command_name)
  command = all_commands[meth]
  handle_no_command_error(meth) unless command

  shell.say "USAGE ", ['white', :bold]
  shell.say "\b:"
  shell.say "  #{banner(command)}"
  class_options_help(shell, nil => command.options.values)
  if command.long_description
    shell.say "DESCRIPTION ", ['white', :bold]
    shell.say "\b:"
    shell.print_wrapped(command.long_description)
  else
    shell.say command.description
  end
end
Also aliased as: task_help
task_help(shell, command_name)
Alias for: command_help