Parent

Methods

GLI::DefaultHelpCommand

Public Class Methods

new(*omit_from_list) click to toggle source
# File lib/support/help.rb, line 6
def initialize(*omit_from_list)
  @omit_from_list = omit_from_list
  super(:help,'Shows list of commands or help for one command','[command]')
end

Public Instance Methods

execute(global_options,options,arguments) click to toggle source
# File lib/support/help.rb, line 11
def execute(global_options,options,arguments)
  if arguments.empty?
    list_global_flags
    list_commands
  else
    list_one_command_help(arguments[0])
  end
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.