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 help #4

Closed Sequoia closed 9 years ago

Sequoia commented 9 years ago

This lesson is to demonstrate the built-in meta-feature (help, version) support

  1. --version (.version)
  2. using .usage :point_left: not crucial
  3. --help usage on switches (supply specific text & test switch by switch)
  4. --help extra info (give user a couple lines of text for an "Example" section & test that it's there)

Add note about reading .version from package.json (probably not worth trying to actually test this).

Sequoia commented 9 years ago

Add in #!?