summaryrefslogtreecommitdiff
path: root/lib/rubygems/commands
diff options
context:
space:
mode:
authorbronzdoc <lsagastume1990@gmail.com>2020-08-31 08:52:59 -0600
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2020-09-28 14:54:22 +0900
commit828cefd629e036c96fbd50013965f61df39417ce (patch)
treea0679da479ba42c7a7135b2874228561d3a2cbff /lib/rubygems/commands
parent777840a16add54af7d84a049b4d5c06a8ba9ff99 (diff)
[rubygems/rubygems] Add --dryrun to the deprecated options when showing the help message
https://github.com/rubygems/rubygems/commit/38230a77c1
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/3599
Diffstat (limited to 'lib/rubygems/commands')
-rw-r--r--lib/rubygems/commands/cleanup_command.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rubygems/commands/cleanup_command.rb b/lib/rubygems/commands/cleanup_command.rb
index e5f438b09f..662badce33 100644
--- a/lib/rubygems/commands/cleanup_command.rb
+++ b/lib/rubygems/commands/cleanup_command.rb
@@ -15,7 +15,7 @@ class Gem::Commands::CleanupCommand < Gem::Command
options[:dryrun] = true
end
- add_option('--dryrun',
+ add_option(:Deprecated, '--dryrun',
'Do not uninstall gems') do |value, options|
options[:dryrun] = true
end