summaryrefslogtreecommitdiff
path: root/lib/rubygems/commands/list_command.rb
diff options
context:
space:
mode:
-rw-r--r--lib/rubygems/commands/list_command.rb15
1 files changed, 9 insertions, 6 deletions
@@ -1,17 +1,20 @@
# frozen_string_literal: true
require 'rubygems/command'
-require 'rubygems/commands/query_command'
##
-# An alternate to Gem::Commands::QueryCommand that searches for gems starting
-# with the supplied argument.
-class Gem::Commands::ListCommand < Gem::Commands::QueryCommand
def initialize
- super 'list', 'Display local gems whose name matches REGEXP'
- remove_option('--name-matches')
end
def arguments # :nodoc: