method
execute
v2_6_3 -
Show latest stable
- Class:
Gem::Commands::HelpCommand
execute()public
No documentation available.
# File lib/rubygems/commands/help_command.rb, line 293
def execute
arg = options[:args][0]
_, help = SUBCOMMANDS.find do |command,|
begins? command, arg
end
if help
if Symbol === help
send help
else
say help
end
return
end
if options[:help]
show_help
elsif arg
show_command_help arg
else
say Gem::Command::HELP
end
end