Class: Clin::OptionUnexpectedArgumentError
- Inherits:
-
OptionError
- Object
- CommandLineError
- OptionError
- Clin::OptionUnexpectedArgumentError
- Defined in:
- lib/clin/errors.rb
Overview
Error when a flag option has an unexpected argument
Instance Method Summary collapse
-
#initialize(option, value) ⇒ OptionUnexpectedArgumentError
constructor
A new instance of OptionUnexpectedArgumentError.
Methods inherited from CommandLineError
Constructor Details
#initialize(option, value) ⇒ OptionUnexpectedArgumentError
Returns a new instance of OptionUnexpectedArgumentError.
68 69 70 71 72 |
# File 'lib/clin/errors.rb', line 68 def initialize(option, value) @value = value = "Unexpected argument '#{value}' for option #{option}" super , option end |