Maintenance Ruby 3.3 gets fixes, but no new features. Switch to Ruby 4.0 →
instance method
Gem::Command#check_deprecated_options
check_deprecated_options(options)
lib/rubygems/command.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.3.0/lib/rubygems/command.rb, line 397
def check_deprecated_options(options)
options.each do |option|
next unless option_is_deprecated?(option)
deprecation = @deprecated_options[command][option]
version_to_expire = deprecation["rg_version_to_expire"]
deprecate_option_msg = if version_to_expire
"The \"#{option}\" option has been deprecated and will be removed in Rubygems #{version_to_expire}."
else
"The \"#{option}\" option has been deprecated and will be removed in future versions of Rubygems."
end
extra_msg = deprecation["extra_msg"]
deprecate_option_msg += " #{extra_msg}" if extra_msg
alert_warning(deprecate_option_msg)
end
end
No documentation available
See also
#begins?
#configure_options
#arguments
#create_option_parser
also in
4.1 · 4.0 · 3.4 · 3.2 · 3.1 · 3.0