Preview Ruby 4.1 is a preview. It can change before the final release. Switch to Ruby 4.0 →
instance method
Gem::Command#handle_options
handle_options(args)
lib/rubygems/command.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.1.0-preview1/lib/rubygems/command.rb, line 440
def handle_options(args)
args = add_extra_args(args)
check_deprecated_options(args)
@options = Gem::Util.deep_dup @defaults
parser.parse!(args)
@options[:args] = args
end
Handle the given list of arguments by parsing them and recording the results.
See also
#get_one_optional_argument
#handles?
#get_one_gem_name
#invoke
also in
4.0 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0