parse_modified.js 237 B

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