Class: Clin::OptionError
- Inherits:
-
CommandLineError
- Object
- CommandLineError
- Clin::OptionError
- Defined in:
- lib/clin/errors.rb
Overview
Error when a option is wrong
Direct Known Subclasses
MissingOptionArgumentError, OptionUnexpectedArgumentError, UnknownOptionError
Instance Method Summary collapse
-
#initialize(message, option) ⇒ OptionError
constructor
A new instance of OptionError.
Methods inherited from CommandLineError
Constructor Details
#initialize(message, option) ⇒ OptionError
Returns a new instance of OptionError.
52 53 54 55 |
# File 'lib/clin/errors.rb', line 52 def initialize(, option) super() @option = option end |