Other useful things
process.exit(0);
Commands
cli.outputHelp();
cli.args == ["hello"];
Help
.on('--help', function() {
console.log('');
})
Options
cli
.version(require('../package').version)
.usage('[options] <command>')
.option('-w, --words <n>', 'generate <n> words')
.option('-i, --interval <n>', 'interval [1000]', 1000)
.option('-s, --symbols', 'include symbols')
.parse(process.argv);
Initialize
var cli = require('commander');
Reference
Top comments (0)