# File lib/rubygems/commands/search_command.rb, line 6 def initialize super 'search', 'Display remote gems whose name contains STRING' remove_option '--name-matches' defaults[:domain] = :remote end
# File lib/rubygems/commands/search_command.rb, line 39 def execute string = get_one_optional_argument options[:name] = /#{string}/ super end