diff options
author | hsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-03-04 00:29:40 +0000 |
---|---|---|
committer | hsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-03-04 00:29:40 +0000 |
commit | 5a90f9e8f84533e7859232895fc4bbe6b31cc771 (patch) | |
tree | e15086587f691a1f5bd3c7ddbfa38e825828caf6 /lib/rubygems/command.rb | |
parent | f1321bd6e7c2d6b6a29a67074bad6f2742263921 (diff) | |
download | ruby-5a90f9e8f84533e7859232895fc4bbe6b31cc771.tar.gz |
* lib/rubygems.rb, lib/rubygems/*, test/rubygems/*: Update rubygems-2.6.1.
Please see entries of 2.6.0 and 2.6.1 on
https://github.com/rubygems/rubygems/blob/master/History.txt
[fix GH-1270] Patch by @segiddins
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53992 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rubygems/command.rb')
-rw-r--r-- | lib/rubygems/command.rb | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/rubygems/command.rb b/lib/rubygems/command.rb index 5b41fc288e..14b70b75ec 100644 --- a/lib/rubygems/command.rb +++ b/lib/rubygems/command.rb @@ -300,6 +300,8 @@ class Gem::Command options[:build_args] = build_args + self.ui = Gem::SilentUI.new if options[:silent] + if options[:help] then show_help elsif @when_invoked then @@ -520,10 +522,15 @@ class Gem::Command end end - add_common_option('-q', '--quiet', 'Silence commands') do |value, options| + add_common_option('-q', '--quiet', 'Silence command progress meter') do |value, options| Gem.configuration.verbose = false end + add_common_option("--silent", + "Silence rubygems output") do |value, options| + options[:silent] = true + end + # Backtrace and config-file are added so they show up in the help # commands. Both options are actually handled before the other # options get parsed. |