Method: Bundler::Thor#help

Defined in:
lib/bundler/vendor/thor/lib/thor.rb

#help(command = nil, subcommand = false) ⇒ Object



505
506
507
508
509
510
511
512
513
514
515
# File 'lib/bundler/vendor/thor/lib/thor.rb', line 505

def help(command = nil, subcommand = false)
  if command
    if self.class.subcommands.include? command
      self.class.subcommand_classes[command].help(shell, true)
    else
      self.class.command_help(shell, command)
    end
  else
    self.class.help(shell, subcommand)
  end
end