Skip to content

Commit ebc8b41

Browse files
authored
Merge pull request #1221 from shadowspawn/feature/nested-typos
Fix typos
2 parents 2ffa6f2 + 9b0a991 commit ebc8b41

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

examples/nestedCommands.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const program = new commander.Command();
44

55
// Commander supports nested subcommands.
66
// .command() can add a subcommand with an action handler or an executable.
7-
// .addCommand() adds a prepared command with an actiomn handler.
7+
// .addCommand() adds a prepared command with an action handler.
88

99
// Example output:
1010
//
@@ -21,9 +21,9 @@ brew
2121
console.log('brew tea');
2222
});
2323
brew
24-
.command('tea')
24+
.command('coffee')
2525
.action(() => {
26-
console.log('brew tea');
26+
console.log('brew coffee');
2727
});
2828

2929
// Add nested commands using `.addCommand().

0 commit comments

Comments
 (0)