sergeant
A CLI solution inspired by Commander.js.
an example
var sergeant = require('sergeant')
var app = sergeant()
app.describe('an example application')
app.command('command1')
.describe('an example command')
.parameter('parameter1', 'an example parameter', function (val) {
assert.ok(typeof parameter1 === 'string')
return val + '...'
})
.option('option1', 'an example option', function (val) {
assert.ok(typeof parameter1 === 'string')
return val + '...'
})
.option('option2', 'another example option')
.alias('o', { option1: true, option2: false })
.alias('not-o', { option1: false, option2: true })
.action(function (args, options, done) {
done()
})