aboutsummaryrefslogtreecommitdiffstats
path: root/lib/rubygems/gemcutter_utilities.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rubygems/gemcutter_utilities.rb')
-rw-r--r--lib/rubygems/gemcutter_utilities.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/rubygems/gemcutter_utilities.rb b/lib/rubygems/gemcutter_utilities.rb
index a77a4911f2..9dce97cc1f 100644
--- a/lib/rubygems/gemcutter_utilities.rb
+++ b/lib/rubygems/gemcutter_utilities.rb
@@ -15,7 +15,9 @@ module Gem::GemcutterUtilities
# Add the --key option
def add_key_option
- add_option '-k', '--key KEYNAME', Symbol, 'Use the given API key' do |value,options|
+ add_option('-k', '--key KEYNAME', Symbol,
+ 'Use the given API key',
+ 'from ~/.gem/credentials') do |value,options|
options[:key] = value
end
end