Class: Toys::ArgParser::FlagAmbiguousError
- Inherits:
-
UsageError
- Object
- UsageError
- Toys::ArgParser::FlagAmbiguousError
- Defined in:
- lib/toys/arg_parser.rb
Overview
A UsageError indicating a flag name prefix was given that matched multiple flags.
Instance Attribute Summary
Attributes inherited from UsageError
#message, #name, #suggestions, #value
Instance Method Summary collapse
-
#initialize(message = nil, value: nil, suggestions: nil) ⇒ FlagAmbiguousError
constructor
Create a FlagAmbiguousError.
Methods inherited from UsageError
Constructor Details
#initialize(message = nil, value: nil, suggestions: nil) ⇒ FlagAmbiguousError
Create a FlagAmbiguousError.
152 153 154 155 |
# File 'lib/toys/arg_parser.rb', line 152 def initialize( = nil, value: nil, suggestions: nil) super( || "Flag prefix \"#{value}\" is ambiguous.", value: value, suggestions: suggestions) end |