Class: PVN::Seek::MatchOption

Inherits:
Synoption::BooleanOption
  • Object
show all
Defined in:
lib/pvn/seek/options.rb

Instance Method Summary collapse

Constructor Details

#initialize(optargs = Hash.new) ⇒ MatchOption

Returns a new instance of MatchOption.



10
11
12
13
14
# File 'lib/pvn/seek/options.rb', line 10

def initialize optargs = Hash.new
  opts = Hash.new
  opts[:negate] = '--nomatch', '--no-match', '-M'
  super :match, '-m', 'find where the pattern matched', true, opts
end