mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
[rubygems/rubygems] Make --dry-run flag consistent across rubygems commands
https://github.com/rubygems/rubygems/commit/addc644cad
This commit is contained in:
parent
0629e695e3
commit
b83787b1ce
Notes:
git
2020-09-28 14:54:57 +09:00
2 changed files with 2 additions and 2 deletions
|
@ -10,7 +10,7 @@ class Gem::Commands::CleanupCommand < Gem::Command
|
|||
:force => false, :install_dir => Gem.dir,
|
||||
:check_dev => true
|
||||
|
||||
add_option('-n', '-d', '--dryrun',
|
||||
add_option('-n', '-d', '--dry-run',
|
||||
'Do not uninstall gems') do |value, options|
|
||||
options[:dryrun] = true
|
||||
end
|
||||
|
|
|
@ -22,7 +22,7 @@ class TestGemCommandsCleanupCommand < Gem::TestCase
|
|||
end
|
||||
|
||||
def test_handle_options_dry_run
|
||||
@cmd.handle_options %w[--dryrun]
|
||||
@cmd.handle_options %w[--dry-run]
|
||||
assert @cmd.options[:dryrun]
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue