# File lib/rubygems/commands/contents_command.rb, line 8 def initialize super 'contents', 'Display the contents of the installed gems', :specdirs => [], :lib_only => false add_version_option add_option('-s', '--spec-dir a,b,c', Array, "Search for gems under specific paths") do |spec_dirs, options| options[:specdirs] = spec_dirs end add_option('-l', '--[no-]lib-only', "Only return files in the Gem's lib_dirs") do |lib_only, options| options[:lib_only] = lib_only end end