diff options
Diffstat (limited to 'lib/rubygems/command.rb')
-rw-r--r-- | lib/rubygems/command.rb | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/lib/rubygems/command.rb b/lib/rubygems/command.rb index 28af3d090c..5b41fc288e 100644 --- a/lib/rubygems/command.rb +++ b/lib/rubygems/command.rb @@ -1,4 +1,4 @@ -# frozen_string_literal: false +# frozen_string_literal: true #-- # Copyright 2006 by Chad Fowler, Rich Kilmer, Jim Weirich and others. # All rights reserved. @@ -154,7 +154,7 @@ class Gem::Command def show_lookup_failure(gem_name, version, errors, domain) if errors and !errors.empty? - msg = "Could not find a valid gem '#{gem_name}' (#{version}), here is why:\n" + msg = "Could not find a valid gem '#{gem_name}' (#{version}), here is why:\n".dup errors.each { |x| msg << " #{x.wordy}\n" } alert_error msg else @@ -540,6 +540,11 @@ class Gem::Command 'Turn on Ruby debugging') do end + add_common_option('--norc', + 'Avoid loading any .gemrc file') do + end + + # :stopdoc: HELP = <<-HELP @@ -580,4 +585,3 @@ end module Gem::Commands end - |