Method: Bundler::Thor::Runner#help

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

#help(meth = nil) ⇒ Object

Override Bundler::Thor#help so it can give information about any class and any method.

[View source]

21
22
23
24
25
26
27
28
29
30
# File 'lib/bundler/vendor/thor/lib/thor/runner.rb', line 21

def help(meth = nil)
  if meth && !respond_to?(meth)
    initialize_thorfiles(meth)
    klass, command = Bundler::Thor::Util.find_class_and_command_by_namespace(meth)
    self.class.handle_no_command_error(command, false) if klass.nil?
    klass.start(["-h", command].compact, shell: shell)
  else
    super
  end
end