Exception: GLI::RequestHelp

Inherits:
StandardError
  • Object
show all
Includes:
StandardException
Defined in:
lib/gli/exceptions.rb

Overview

Hack to request help from within a command Will not be rethrown when GLI_DEBUG is ON

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(command_in_context) ⇒ RequestHelp

Returns a new instance of RequestHelp.



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

def initialize(command_in_context)
  @command_in_context = command_in_context
end

Instance Attribute Details

#command_in_contextObject (readonly)

The command for which the argument was unknown



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

def command_in_context
  @command_in_context
end

Instance Method Details

#exit_codeObject



13
# File 'lib/gli/exceptions.rb', line 13

def exit_code; 0; end