Detalhes do pacote

commander-b

bouzuya41MIT1.0.0

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

cli, command, commander

readme (leia-me)

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