Skip to content

Commit

Permalink
Merge pull request #1221 from shadowspawn/feature/nested-typos
Browse files Browse the repository at this point in the history
Fix typos
  • Loading branch information
shadowspawn committed Mar 16, 2020
2 parents 2ffa6f2 + 9b0a991 commit ebc8b41
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/nestedCommands.js
Expand Up @@ -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:
//
Expand All @@ -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().
Expand Down

0 comments on commit ebc8b41

Please sign in to comment.