summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/rubygems/commands/build_command.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rubygems/commands/build_command.rb b/lib/rubygems/commands/build_command.rb
index 76149032b2..27d8140428 100644
--- a/lib/rubygems/commands/build_command.rb
+++ b/lib/rubygems/commands/build_command.rb
@@ -62,7 +62,7 @@ Gems can be saved to a specified filename with the output option:
private
- def build_gem(gemspec = get_one_gem_name)
+ def build_gem(gemspec = get_one_optional_argument)
unless File.exist?(gemspec)
gemspec += ".gemspec" if File.exist?(gemspec + ".gemspec")
end