Exception: GLI::MissingRequiredArgumentsException
- Inherits:
-
BadCommandLine
- Object
- StandardError
- BadCommandLine
- GLI::MissingRequiredArgumentsException
- Defined in:
- lib/gli/exceptions.rb
Instance Attribute Summary collapse
-
#command_in_context ⇒ Object
readonly
The command for which the argument was unknown.
Instance Method Summary collapse
-
#initialize(message, command) ⇒ MissingRequiredArgumentsException
constructor
message
- the error message to show the user
command
-
the command we were using to parse command-specific options.
- the error message to show the user
Methods inherited from BadCommandLine
Methods included from StandardException
Constructor Details
#initialize(message, command) ⇒ MissingRequiredArgumentsException
message
-
the error message to show the user
command
-
the command we were using to parse command-specific options
67 68 69 70 |
# File 'lib/gli/exceptions.rb', line 67 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 |