Method: GLI::CustomExit#initialize

Defined in:
lib/gli/exceptions.rb

#initialize(message, exit_code) ⇒ CustomExit

Create a custom exit exception

message

String containing error message to show the user

exit_code

the exit code to use (as an Int), overridding GLI’s default



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

def initialize(message,exit_code)
  super(message)
  @exit_code = exit_code
end