aboutsummaryrefslogtreecommitdiffstats
path: root/lib/rubygems/command.rb
diff options
context:
space:
mode:
authorhsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-03-04 00:29:40 +0000
committerhsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-03-04 00:29:40 +0000
commite373d99f356779c1823c81603eaee6ed71cf68f5 (patch)
treee15086587f691a1f5bd3c7ddbfa38e825828caf6 /lib/rubygems/command.rb
parent984ea2cb815c33cfd50eb103a604e1c7462069a2 (diff)
downloadruby-e373d99f356779c1823c81603eaee6ed71cf68f5.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.rb9
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.