Exception: GLI::UnknownCommandArgument
- Inherits:
-
BadCommandLine
- Object
- Exception
- 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
Returns the value of attribute command.
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
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
20 21 22 23 |
# File 'lib/gli/exceptions.rb', line 20 def initialize(,command) super() @command = command end |
Instance Attribute Details
#command ⇒ Object (readonly)
Returns the value of attribute command.
17 18 19 |
# File 'lib/gli/exceptions.rb', line 17 def command @command end |