8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2ffa6f2 + 9b0a991 commit ebc8b41Copy full SHA for ebc8b41
examples/nestedCommands.js
@@ -4,7 +4,7 @@ const program = new commander.Command();
4
5
// Commander supports nested subcommands.
6
// .command() can add a subcommand with an action handler or an executable.
7
-// .addCommand() adds a prepared command with an actiomn handler.
+// .addCommand() adds a prepared command with an action handler.
8
9
// Example output:
10
//
@@ -21,9 +21,9 @@ brew
21
console.log('brew tea');
22
});
23
brew
24
- .command('tea')
+ .command('coffee')
25
.action(() => {
26
- console.log('brew tea');
+ console.log('brew coffee');
27
28
29
// Add nested commands using `.addCommand().
0 commit comments