Skip to content

Commit

Permalink
Tweak wording again
Browse files Browse the repository at this point in the history
  • Loading branch information
shadowspawn committed Dec 9, 2023
1 parent 360adb8 commit 4fbf634
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -1092,7 +1092,7 @@ program.error('Custom processing has failed', { exitCode: 2, code: 'my.custom.er
### Override exit and output handling

By default, Commander calls `process.exit` when it detects errors, or after displaying the help or version. You can override
this behaviour and optionally supply a callback. The default override throws a `CommanderError`.
this behaviour and optionally supply a callback to be called first. The default override throws a `CommanderError`.

The override callback is passed a `CommanderError` with properties `exitCode` number, `code` string, and `message`.
Commander expects the callback to terminate the normal program flow, and will call `process.exit` if the callback returns.
Expand Down

0 comments on commit 4fbf634

Please sign in to comment.