Preview Ruby 4.1 is a preview. It can change before the final release. Switch to Ruby 4.0 →
instance method
Gem::Commands::HelpCommand#execute
execute
lib/rubygems/commands/help_command.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.1.0-preview1/lib/rubygems/commands/help_command.rb, line 295
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
No documentation available