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

Methods included from StandardException

#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



28
29
30
31
# File 'lib/gli/exceptions.rb', line 28

def initialize(message,command)
  super(message)
  @command = command
end

Instance Attribute Details

#commandObject (readonly)

The command for which the argument was unknown



25
26
27
# File 'lib/gli/exceptions.rb', line 25

def command
  @command
end