End of Life Ruby 3.2 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
Gem::Command#remove_option
remove_option(name)
lib/rubygems/command.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.2.0/lib/rubygems/command.rb, line 366
def remove_option(name)
@option_groups.each do |_, option_list|
option_list.reject! {|args, _| args.any? {|x| x.is_a?(String) && x =~ /^#{name}/ } }
end
end
Remove previously defined command-line argument name.
See also
#parser
#show_help
#option_is_deprecated?
#show_lookup_failure
also in
4.1 · 4.0 · 3.4 · 3.3 · 3.1 · 3.0