instance method
Gem::Command#remove_option
remove_option(name)
lib/rubygems/command.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.0.0/lib/rubygems/command.rb, line 369
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 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0