From 4a4c1d529d988c332ac577a3a24966d334773dda Mon Sep 17 00:00:00 2001 From: Alex Havermale <65569550+haversnail-cbs@users.noreply.github.com> Date: Wed, 10 Feb 2021 23:48:17 -0500 Subject: [PATCH] Update documentation for option event listeners (#1470) --- Readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Readme.md b/Readme.md index af084a029..c8ce6ed42 100644 --- a/Readme.md +++ b/Readme.md @@ -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) {