Class: Clin::HelpError
- Inherits:
-
CommandLineError
- Object
- CommandLineError
- Clin::HelpError
- Defined in:
- lib/clin/errors.rb
Overview
Error when the help needs to be shown
Instance Method Summary collapse
-
#initialize(command) ⇒ HelpError
constructor
A new instance of HelpError.
Methods inherited from CommandLineError
Constructor Details
#initialize(command) ⇒ HelpError
Returns a new instance of HelpError.
16 17 18 19 20 21 22 23 |
# File 'lib/clin/errors.rb', line 16 def initialize(command) if command.class == Class && command < Clin::Command super(command.help) @command = command else super(command) end end |