Exception: OptimistXL::HelpNeeded

Inherits:
StandardError
  • Object
show all
Defined in:
lib/optimist_xl.rb

Overview

Thrown by Parser if the user passes in ‘-h’ or ‘–help’. Handled automatically by OptimistXL#options.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(msg = nil, parser: nil) ⇒ HelpNeeded

Returns a new instance of HelpNeeded.



29
30
31
32
# File 'lib/optimist_xl.rb', line 29

def initialize(msg=nil, parser: nil)
  super(msg)
  @parser = parser
end

Instance Attribute Details

#parserObject (readonly)

Returns the value of attribute parser.



28
29
30
# File 'lib/optimist_xl.rb', line 28

def parser
  @parser
end