From 997655dea2783323ffaddb2ddb5fb8786a73ad61 Mon Sep 17 00:00:00 2001 From: John Gee Date: Sun, 20 Feb 2022 16:20:49 +1300 Subject: [PATCH] Fix syntax errors in migration example (#1692) --- CHANGELOG.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 237b0399d..60e3cdb1d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -281,14 +281,14 @@ program .command('compress ') .option('-t, --trace') // Old code before Commander 7 - .action((filename, cmd)) => { + .action((filename, cmd) => { if (cmd.trace) console.log(`Command name is ${cmd.name()}`); }); ``` ```js // New code - .action((filename, options, command)) => { + .action((filename, options, command) => { if (options.trace) console.log(`Command name is ${command.name()}`); }); ``` @@ -301,14 +301,14 @@ program .storeOptionsAsProperties(false) .option('-t, --trace') // Old code before Commander 7 - .action((filename, command)) => { + .action((filename, command) => { if (command.opts().trace) console.log(`Command name is ${command.name()}`); }); ``` ```js // New code - .action((filename, options, command)) => { + .action((filename, options, command) => { if (command.opts().trace) console.log(`Command name is ${command.name()}`); }); ```