Class: PVN::Command::HelpOption

Inherits:
BooleanOption show all
Defined in:
lib/pvn/command/options.rb

Constant Summary

Constants inherited from BaseOption

BaseOption::NO_CMDLINE_OPTION

Instance Attribute Summary

Attributes inherited from BaseOption

#default, #description, #name, #negate, #regexp, #tag

Instance Method Summary collapse

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(args = Hash.new) ⇒ HelpOption

Returns a new instance of HelpOption.



13
14
15
# File 'lib/pvn/command/options.rb', line 13

def initialize args = Hash.new
  super :help, '-h', "display help", nil
end