commander-b

v1.0.0
A helper library for Node.js command-line interfaces, inspired by commander.js.
cli command commander

commander-b

Fine, we'll go to plan B... You got a plan B?

Marcus Fenix

A helper library for Node.js command-line interfaces, inspired by commander.js.

Installation

npm install commander-b

Examples

examples/simple.js

var command = require('commander-b');

command()
.version('0.1.0')
.action(function() { console.log('Yukiho is God.'); })
.execute();

Run

$ node examples/simple.js
Yukiho is God.

$ node examples/simple.js -h

  Usage: simple

  Options:

    -h, --help    output usage information
    -V, --version output the version number

$ node examples/simple.js -V
0.1.0

Badges

Build Status Coverage Status

License

MIT

npm i commander-b

Metadata

  • MIT
  • Whatever
  • bouzuya
  • released 6/8/2016

Downloads

Maintainers