Exception: GLI::BadCommandOptionsOrArguments
- Inherits:
-
BadCommandLine
- Object
- StandardError
- BadCommandLine
- GLI::BadCommandOptionsOrArguments
- Defined in:
- lib/gli/exceptions.rb
Direct Known Subclasses
MissingRequiredArgumentsException, MissingRequiredOptionsException
Instance Attribute Summary collapse
-
#command_in_context ⇒ Object
readonly
The command for which the argument was unknown.
Instance Method Summary collapse
-
#initialize(message, command) ⇒ BadCommandOptionsOrArguments
constructor
A new instance of BadCommandOptionsOrArguments.
Methods inherited from BadCommandLine
Methods included from StandardException
Constructor Details
#initialize(message, command) ⇒ BadCommandOptionsOrArguments
Returns a new instance of BadCommandOptionsOrArguments.
65 66 67 68 |
# File 'lib/gli/exceptions.rb', line 65 def initialize(,command) super() @command_in_context = command end |
Instance Attribute Details
#command_in_context ⇒ Object (readonly)
The command for which the argument was unknown
64 65 66 |
# File 'lib/gli/exceptions.rb', line 64 def command_in_context @command_in_context end |