cliopt
v0.0.5
Published
command line parser
Downloads
8
Readme
cliopt
var cliopt = require('cliopt');
var parser = cliopt({
test: {
type: String,
enum: ['aaa', 'bbb', 'ccc'],
default: 'aaa'
}
});
parser.use(clipot.pair());
parser.use(clipot.convert());
parser.parse(process.argv.slice(2), function (err) {
if (err) {
throw err;
}
//...
});