Class: Toys::ArgParser::FlagUnrecognizedError
- Inherits:
-
UsageError
- Object
- UsageError
- Toys::ArgParser::FlagUnrecognizedError
- Defined in:
- lib/toys/arg_parser.rb
Overview
A UsageError indicating a flag name was not recognized.
Instance Attribute Summary
Attributes inherited from UsageError
#message, #name, #suggestions, #value
Instance Method Summary collapse
-
#initialize(message = nil, value: nil, suggestions: nil) ⇒ FlagUnrecognizedError
constructor
Create a FlagUnrecognizedError.
Methods inherited from UsageError
Constructor Details
#initialize(message = nil, value: nil, suggestions: nil) ⇒ FlagUnrecognizedError
Create a FlagUnrecognizedError.
132 133 134 135 |
# File 'lib/toys/arg_parser.rb', line 132 def initialize( = nil, value: nil, suggestions: nil) super( || "Flag \"#{value}\" is not recognized.", value: value, suggestions: suggestions) end |