Skip to content

Commit 4a4c1d5

Browse files
Update documentation for option event listeners (#1470)
1 parent b2a4f87 commit 4a4c1d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Readme.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -671,7 +671,7 @@ You can execute custom actions by listening to command and option events.
671671
672672
```js
673673
program.on('option:verbose', function () {
674-
process.env.VERBOSE = this.verbose;
674+
process.env.VERBOSE = this.opts().verbose;
675675
});
676676
677677
program.on('command:*', function (operands) {

0 commit comments

Comments
 (0)