Skip to content

Commit

Permalink
Fix errata in example (#1676)
Browse files Browse the repository at this point in the history
  • Loading branch information
shadowspawn committed Jan 14, 2022
1 parent c58fe4d commit c984ab8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Readme.md
Expand Up @@ -1012,8 +1012,8 @@ As well as the error message, you can optionally specify the `exitCode` (used wi
and `code` (used with `CommanderError`).
```js
program.exit('Password must be longer than four characters');
program.exit('Custom processing has failed', { exitCode: 2, code: 'my.custom.error' });
program.error('Password must be longer than four characters');
program.error('Custom processing has failed', { exitCode: 2, code: 'my.custom.error' });
```
### Override exit and output handling
Expand Down

0 comments on commit c984ab8

Please sign in to comment.