Exception: GLI::BadCommandOptionsOrArguments

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

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) ⇒ BadCommandOptionsOrArguments

Returns a new instance of BadCommandOptionsOrArguments.



65
66
67
68
# File 'lib/gli/exceptions.rb', line 65

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

Instance Attribute Details

#command_in_contextObject (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