Exception: GLI::UnknownCommandArgument

Inherits:
BadCommandLine show all
Defined in:
lib/gli/exceptions.rb

Overview

Indicates the bad command line was an unknown command argument

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from BadCommandLine

#exit_code

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(message,command)
  super(message)
  @command = command
end

Instance Attribute Details

#commandObject (readonly)

Returns the value of attribute command.



17
18
19
# File 'lib/gli/exceptions.rb', line 17

def command
  @command
end