parse_modified.js 238 B

12345678910
  1. var parse = require('../');
  2. var test = require('tape');
  3. test('parse with modifier functions' , function (t) {
  4. t.plan(1);
  5. var argv = parse([ '-b', '123' ], { boolean: 'b' });
  6. t.deepEqual(argv, { b: true, _: [123] });
  7. });