Skip to content

Commit

Permalink
Update documentation for option event listeners (#1470)
Browse files Browse the repository at this point in the history
  • Loading branch information
haversnail-cbs authored Feb 11, 2021
1 parent b2a4f87 commit 4a4c1d5
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 @@ -671,7 +671,7 @@ You can execute custom actions by listening to command and option events.
```js
program.on('option:verbose', function () {
process.env.VERBOSE = this.verbose;
process.env.VERBOSE = this.opts().verbose;
});
program.on('command:*', function (operands) {
Expand Down

0 comments on commit 4a4c1d5

Please sign in to comment.