NewsBlur/node/node_modules/minimist/test/parse_modified.js

10 lines
238 B
JavaScript
Raw Normal View History

2016-11-29 18:29:50 -08:00
var parse = require('../');
var test = require('tape');
test('parse with modifier functions' , function (t) {
t.plan(1);
var argv = parse([ '-b', '123' ], { boolean: 'b' });
2020-06-15 18:03:31 -04:00
t.deepEqual(argv, { b: true, _: [123] });
2016-11-29 18:29:50 -08:00
});