Miss any of our Open RFC calls?Watch the recordings here! »

commander-extras

1.1.1 • Public • Published

Commander-Extras

Extremely small utility which adds additional functionality to the Commander NPM module.

var commander = require('commander');
var commanderExtras = require('commander-extras');
 
var program = commander
    .option('-v, --verbose', 'Be verbose')
    .env('FOO', 'FOO Environment variable desription')
    .env('BAR', 'BAR Environment variable desription')
    .env('BAZ', 'FOO environment variable desription')
    .note('Note one')
    .note('Note two')
    .note('Note three')
    .parse(process.argv);

API

The following API's are added to the existing Commander prototype:

env(name, description)

Used to define an environment variable.

example(cli, title)

Used to define an example with an optional title.

note(description)

Add an additional note to display at the bottom of the help output.

Keywords

Install

npm i [email protected]

Version

1.1.1

License

MIT

Unpacked Size

4.2 kB

Total Files

4

Last publish

Collaborators

  • avatar