Class: PVN::Command::ColorOption
- Inherits:
-
BooleanOption
- Object
- BaseOption
- Option
- BooleanOption
- PVN::Command::ColorOption
- Defined in:
- lib/pvn/command/color_option.rb
Constant Summary
Constants inherited from BaseOption
Instance Attribute Summary
Attributes inherited from BaseOption
#default, #description, #name, #negate, #regexp, #tag
Instance Method Summary collapse
-
#initialize(optargs = Hash.new) ⇒ ColorOption
constructor
A new instance of ColorOption.
Methods inherited from BooleanOption
#takes_value?, #to_command_line
Methods inherited from BaseOption
#exact_match?, #negative_match?, #next_argument, #post_process, #process, #regexp_match?, #resolve_value, #set_value, #takes_value?, #to_command_line, #to_doc, #to_s, #unset, #value
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, '-f', "show colorized output", true, :negate => [ '-C', %r{^--no-?color} ], :as_cmdline_option => nil end |