Skip to content
Myr

Update documentation for option event listeners (#1470)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Alex Havermale · committed by GitHub · parent b2a4f87 · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:Readme.md+1 added-1 removed
669 unmodified lines
670You can execute custom actions by listening to command and option events.671672```js673program.on('option:verbose', function () {674 process.env.VERBOSE = this.verbose;674 process.env.VERBOSE = this.opts().verbose;675});676677program.on('command:*', function (operands) {678 console.error(`error: unknown command '${operands[0]}'`);
239 unmodified lines