End of Life Ruby 3.0 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
Gem::Command#create_option_parser
create_option_parser
lib/rubygems/command.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.0.5/lib/rubygems/command.rb, line 542
def create_option_parser
@parser = Gem::OptionParser.new
add_parser_options
@parser.separator nil
configure_options "Common", Gem::Command.common_options
add_parser_run_info "Arguments", arguments
add_parser_summary
add_parser_description
add_parser_run_info "Defaults", defaults_str
end
Creates an option parser and fills it in with the help info for the command.
See also
#configure_options
#defaults_str
#check_deprecated_options
#deprecated?
also in
4.1 · 4.0 · 3.4 · 3.3 · 3.2 · 3.1