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