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 more arg-parsing features #7

Open Sequoia opened 9 years ago

Sequoia commented 9 years ago

Program that requires a list of numbers & outputs them sorted

  1. Defaults: --min don't print numbers less than this (defaults to 0)
  2. Required args: --order (up for ascending or down for descending)
  3. Variadic args [others...] array of numbers