Skip to content

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
shadowspawn committed Mar 16, 2020
1 parent 2aad525 commit 9b0a991
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/nestedCommands.js
Original file line number Diff line number Diff line change
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 9b0a991

Please sign in to comment.