vendor/bundle/ruby/1.9.1/gems/thor-0.14.6/lib/thor.rb
# Prints help information for the given task.
#
# ==== Parameters
# shell<Thor::Shell>
# task_name<String>
#
Prints help information for the given task.
Prints help information for the given task .
def task_help(shell, task_name)
      meth = normalize_task_name(task_name)
      task = all_tasks[meth]
      handle_no_task_error(meth) unless task
      shell.say "Usage:"
      shell.say "  #{banner(task)}"
      shell.say
      class_options_help(shell, nil => task.options.map { |_, o| o })
      if task.long_description
        shell.say "Description:"
        shell.print_wrapped(task.long_description, :ident => 2)
      else
        shell.say task.description
      end
    end
def task_help ( shell , task_name ) meth = normalize_task_name ( task_name ) task = all_tasks [ meth ] handle_no_task_error ( meth ) unless task shell . say "Usage:" shell . say "  #{banner(task)}" shell . say class_options_help ( shell , nil => task . options . map { | _ , o | o } ) if task . long_description shell . say "Description:" shell . print_wrapped ( task . long_description , :ident => 2 ) else shell . say task . description end end
Prints help information for the given task.
Prints help information for the given task .
shell
<not_specific>
task_name
<not_specific>