commander-extras
Extra functionality for commander including environment variables and notes
Last updated 2 months ago by hash-bang .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install commander-extras 
SYNC missed versions from official npm registry.

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.

Current Tags

  • 1.1.2                                ...           latest (13 days ago)

5 Versions

  • 1.1.2                                ...           13 days ago
  • 1.1.1                                ...           2 months ago
  • 1.1.0                                ...           10 months ago
  • 1.0.1                                ...           a year ago
  • 1.0.0                                ...           a year ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 1
Last Day 0
Last Week 12
Last Month 11
Dependencies (0)
None
Dev Dependencies (2)

Copyright 2014 - 2016 © taobao.org |