Class: Toys::ArgParser::ToolUnrecognizedError
- Inherits:
-
UsageError
- Object
- UsageError
- Toys::ArgParser::ToolUnrecognizedError
- Defined in:
- lib/toys/arg_parser.rb
Overview
A UsageError indicating the given subtool name does not exist.
Instance Attribute Summary
Attributes inherited from UsageError
#message, #name, #suggestions, #value
Instance Method Summary collapse
-
#initialize(message = nil, value: nil, values: nil, suggestions: nil) ⇒ ToolUnrecognizedError
constructor
Create a ToolUnrecognizedError.
Methods inherited from UsageError
Constructor Details
#initialize(message = nil, value: nil, values: nil, suggestions: nil) ⇒ ToolUnrecognizedError
Create a ToolUnrecognizedError.
247 248 249 250 251 |
# File 'lib/toys/arg_parser.rb', line 247 def initialize( = nil, value: nil, values: nil, suggestions: nil) super( || "Tool not found: \"#{Array(values).join(' ')}\"", value: value, suggestions: suggestions) @name = name end |