Exception: GLI::UnknownCommandArgument
- Inherits:
-
BadCommandLine
- Object
- StandardError
- BadCommandLine
- GLI::UnknownCommandArgument
- Defined in:
- lib/gli/exceptions.rb
Overview
Indicates the bad command line was an unknown command argument
Instance Attribute Summary collapse
-
#command ⇒ Object
readonly
The command for which the argument was unknown.
Instance Method Summary collapse
-
#initialize(message, command) ⇒ UnknownCommandArgument
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) ⇒ UnknownCommandArgument
message
-
the error message to show the user
command
-
the command we were using to parse command-specific options
28 29 30 31 |
# File 'lib/gli/exceptions.rb', line 28 def initialize(,command) super() @command = command end |
Instance Attribute Details
#command ⇒ Object (readonly)
The command for which the argument was unknown
25 26 27 |
# File 'lib/gli/exceptions.rb', line 25 def command @command end |