Module: GLI::StandardException

Included in:
BadCommandLine, CustomExit, PreconditionFailed, RequestHelp
Defined in:
lib/gli/exceptions.rb

Overview

Mixed into all exceptions that GLI handles; you can use this to catch anything that came from GLI intentionally. You can also mix this into non-GLI exceptions to get GLI’s exit behavior.

Instance Method Summary collapse

Instance Method Details

#exit_codeObject



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

def exit_code; 1; end