Method not available on this version
This method is only available on newer versions. The first available version (v2_6_3) is shown here.
command_help(shell, command_name)public
# File lib/bundler/vendor/thor/lib/thor.rb, line 167
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:"
shell.say " #{banner(command)}"
shell.say
class_options_help(shell, nil => command.options.values)
if command.long_description
shell.say "Description:"
shell.print_wrapped(command.long_description, :indent => 2)
else
shell.say command.description
end
end Related methods
- Instance methods
- help
- Class methods
- check_unknown_options!
- check_unknown_options?
- command_help
- default_command
- default_task
- desc
- disable_required_check!
- disable_required_check?
- help
- long_desc
- map
- method_option
- method_options
- option
- options
- package_name
- printable_commands
- printable_tasks
- register
- stop_on_unknown_option!
- stop_on_unknown_option?
- subcommand
- subcommand_classes
- subcommands
- subtask
- subtasks
- task_help
- Protected methods
-
banner -
baseclass -
create_command -
create_task -
disable_required_check -
dispatch -
dynamic_command_class -
find_command_possibilities -
find_task_possibilities -
initialize_added -
normalize_command_name -
normalize_task_name -
retrieve_command_name -
retrieve_task_name -
stop_on_unknown_option -
subcommand_help -
subtask_help