Method: LibGems::Commands::WhichCommand#initialize
- Defined in:
- lib/libgems/commands/which_command.rb
#initialize ⇒ WhichCommand
Returns a new instance of WhichCommand.
8 9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/libgems/commands/which_command.rb', line 8 def initialize super 'which', 'Find the location of a library file you can require', :search_gems_first => false, :show_all => false add_option '-a', '--[no-]all', 'show all matching files' do |show_all, | [:show_all] = show_all end add_option '-g', '--[no-]gems-first', 'search gems before non-gems' do |gems_first, | [:search_gems_first] = gems_first end end |