* Call process.exit, and _exitCallback if defined. * * @param {number} exitCode exit code for using with process.exit * @param {string} code an id string representing the error * @param {string} message human-readable description of the error * @return never * @private
(exitCode, code, message)
| 532 | */ |
| 533 | |
| 534 | _exit(exitCode, code, message) { |
| 535 | if (this._exitCallback) { |
| 536 | this._exitCallback(new CommanderError(exitCode, code, message)); |
| 537 | // Expecting this line is not reached. |
| 538 | } |
| 539 | process.exit(exitCode); |
| 540 | } |
| 541 | |
| 542 | /** |
| 543 | * Register callback `fn` for the command. |
no outgoing calls
no test coverage detected