From 9b0a99151e54267d0a75fe38e861d6cba3fa7d5c Mon Sep 17 00:00:00 2001 From: John Gee Date: Mon, 16 Mar 2020 22:50:59 +1300 Subject: [PATCH] Fix typos --- examples/nestedCommands.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/nestedCommands.js b/examples/nestedCommands.js index 3251ee5d8..4097d4b78 100644 --- a/examples/nestedCommands.js +++ b/examples/nestedCommands.js @@ -4,7 +4,7 @@ const program = new commander.Command(); // Commander supports nested subcommands. // .command() can add a subcommand with an action handler or an executable. -// .addCommand() adds a prepared command with an actiomn handler. +// .addCommand() adds a prepared command with an action handler. // Example output: // @@ -21,9 +21,9 @@ brew console.log('brew tea'); }); brew - .command('tea') + .command('coffee') .action(() => { - console.log('brew tea'); + console.log('brew coffee'); }); // Add nested commands using `.addCommand().