Exception: GLI::RequestHelp
- Inherits:
-
StandardError
- Object
- StandardError
- GLI::RequestHelp
- 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
-
#command_in_context ⇒ Object
readonly
The command for which the argument was unknown.
Instance Method Summary collapse
- #exit_code ⇒ Object
-
#initialize(command_in_context) ⇒ RequestHelp
constructor
A new instance of RequestHelp.
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_context ⇒ Object (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_code ⇒ Object
13 |
# File 'lib/gli/exceptions.rb', line 13 def exit_code; 0; end |