Class: PVN::Command::ColorOption

Inherits:
Synoption::BooleanOption
  • Object
show all
Defined in:
lib/pvn/command/color_option.rb

Instance Method Summary collapse

Constructor Details

#initialize(optargs = Hash.new) ⇒ ColorOption

Returns a new instance of ColorOption.



8
9
10
# File 'lib/pvn/command/color_option.rb', line 8

def initialize optargs = Hash.new
  super :color, nil, "show colorized output", true, :negate => [ '-C', %r{^--no-?color} ], :as_cmdline_option => nil
end