Class: TTY::Option::MissingArgument
- Inherits:
-
ParseError
- Object
- ParseError
- TTY::Option::MissingArgument
- Defined in:
- lib/tty/option/errors.rb
Overview
Raised when option requires an argument
Constant Summary collapse
- MESSAGE =
"%<type>s %<name>s requires an argument"
Instance Attribute Summary
Attributes inherited from ParseError
Instance Method Summary collapse
-
#initialize(param) ⇒ MissingArgument
constructor
A new instance of MissingArgument.
Methods inherited from ParseError
Constructor Details
#initialize(param) ⇒ MissingArgument
Returns a new instance of MissingArgument.
116 117 118 119 120 |
# File 'lib/tty/option/errors.rb', line 116 def initialize(param) @param = param = format(MESSAGE, type: param.to_sym, name: param.name) super() end |