Class: Clin::HelpError

Inherits:
CommandLineError show all
Defined in:
lib/clin/errors.rb

Overview

Error when the help needs to be shown

Instance Method Summary collapse

Methods inherited from CommandLineError

severity

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