Exception: GLI::MissingRequiredArgumentsException

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

message

the error message to show the user

command

the command we were using to parse command-specific options



67
68
69
70
# File 'lib/gli/exceptions.rb', line 67

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