cliopt

command line parser

npm install cliopt
12 downloads in the last week
24 downloads in the last month

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;
  }
  //...
});

todo

  • 改進 use 匹配的部份
npm loves you