parse_modified.js 240 B

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