diff options
author | bronzdoc <lsagastume1990@gmail.com> | 2020-08-31 00:21:20 -0600 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2020-09-28 14:54:22 +0900 |
commit | be980dd9fa99dc42b064ce596240f7623b97f1fb (patch) | |
tree | 20349b55b7a5f718d48f92b0755bfbb791b74905 /lib/rubygems/commands | |
parent | b83787b1ceb4441362fd3d966ce099e360a48646 (diff) | |
download | ruby-be980dd9fa99dc42b064ce596240f7623b97f1fb.tar.gz |
[rubygems/rubygems] Deprecate --dryrun
https://github.com/rubygems/rubygems/commit/1715610648
Diffstat (limited to 'lib/rubygems/commands')
-rw-r--r-- | lib/rubygems/commands/cleanup_command.rb | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/rubygems/commands/cleanup_command.rb b/lib/rubygems/commands/cleanup_command.rb index 996733cef7..9c38b30657 100644 --- a/lib/rubygems/commands/cleanup_command.rb +++ b/lib/rubygems/commands/cleanup_command.rb @@ -15,6 +15,12 @@ class Gem::Commands::CleanupCommand < Gem::Command options[:dryrun] = true end + add_option('-n', '-d', '--dryrun', + 'Do not uninstall gems') do |value, options| + options[:dryrun] = true + end + deprecate_option('--dryrun', extra_msg: 'Use --dry-run instead') + add_option('-D', '--[no-]check-development', 'Check development dependencies while uninstalling', '(default: true)') do |value, options| @@ -41,7 +47,7 @@ class Gem::Commands::CleanupCommand < Gem::Command end def defaults_str # :nodoc: - "--no-dryrun" + "--no-dry-run" end def description # :nodoc: |