End of Life Ruby 3.1 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
Gem::ConfigFile#handle_arguments
handle_arguments(arg_list)
lib/rubygems/config_file.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.1.3/lib/rubygems/config_file.rb, line 398
def handle_arguments(arg_list)
@args = []
arg_list.each do |arg|
case arg
when /^--(backtrace|traceback)$/ then
@backtrace = true
when /^--debug$/ then
$DEBUG = true
warn "NOTE: Debugging mode prints all exceptions even when rescued"
else
@args << arg
end
end
end
Handle the command arguments.
See also
#each
#load_api_keys
#credentials_path
#load_file
also in
4.1 · 4.0 · 3.4 · 3.3 · 3.2 · 3.0