summaryrefslogtreecommitdiff
path: root/lib/rubygems/commands/list_command.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rubygems/commands/list_command.rb')
-rw-r--r--lib/rubygems/commands/list_command.rb8
1 files changed, 1 insertions, 7 deletions
diff --git a/lib/rubygems/commands/list_command.rb b/lib/rubygems/commands/list_command.rb
index 0d15950475..4edeabef02 100644
--- a/lib/rubygems/commands/list_command.rb
+++ b/lib/rubygems/commands/list_command.rb
@@ -33,13 +33,7 @@ To search for remote gems use the search command.
end
def usage # :nodoc:
- "#{program_name} [STRING]"
- end
-
- def execute
- string = get_one_optional_argument || ''
- options[:name] = /^#{string}/i
- super
+ "#{program_name} [STRING ...]"
end
end