method

execute

Importance_0
v2_2_9 - Show latest stable - 0 notes - Class: HelpCommand
execute() public

No documentation

This method has no description. You can help the Ruby community by adding new notes.

Hide source
# File lib/rubygems/commands/help_command.rb, line 292
  def execute
    arg = options[:args][0]

    _, help = SUBCOMMANDS.find do |command,|
      begins? command, arg
    end

    if help then
      if Symbol === help then
        send help
      else
        say help
      end
      return
    end

    if options[:help] then
      show_help

    elsif arg then
      show_command_help arg

    else
      say Gem::Command::HELP
    end
  end
Register or log in to add new notes.