class Thor
Public Class Methods
command_help(shell, command_name)
click to toggle source
# File lib/sambot/base_command.rb, line 39 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 shell.say(' Usage:', :green) shell.say shell.say " sambot #{command_name} " shell.say shell.say class_options_help(shell, nil => command.options.values) shell.say ' Description:', :green shell.say shell.print_wrapped(docs(command_name.to_s), indent: 2) shell.say end