summaryrefslogtreecommitdiff
path: root/lib/rubygems/command.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rubygems/command.rb')
-rw-r--r--lib/rubygems/command.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/rubygems/command.rb b/lib/rubygems/command.rb
index 3491937..f3961f1 100644
--- a/lib/rubygems/command.rb
+++ b/lib/rubygems/command.rb
@@ -168,7 +168,7 @@ class Gem::Command
"Please specify at least one gem name (e.g. gem build GEMNAME)"
end
- gem_names = args.select { |arg| arg !~ /^-/ }
+ args.select { |arg| arg !~ /^-/ }
end
##
@@ -430,7 +430,7 @@ class Gem::Command
@parser.separator " #{header}Options:"
option_list.each do |args, handler|
- dashes = args.select { |arg| arg =~ /^-/ }
+ args.select { |arg| arg =~ /^-/ }
@parser.on(*args) do |value|
handler.call(value, @options)
end