Sequoia / clijs

Nodeschool lesson-set for learning to build shell tools with javascript
GNU General Public License v3.0
5 stars 0 forks source link

Commander.js sub-commands #5

Open Sequoia opened 9 years ago

Sequoia commented 9 years ago

Specify a couple sub-commands & what they should do. Test These Things & keep it simple.

program
  .command('subcommand <arg> [restArg...]')
  .action(function (arg, restArray) { ...