deployphp/node_modules/minimist/test/stop_early.js
Anton Medvedev 363bb1be96 Update deps
2023-03-28 17:15:22 +02:00

18 lines
312 B
JavaScript

'use strict';
var parse = require('../');
var test = require('tape');
test('stops parsing on the first non-option when stopEarly is set', function (t) {
var argv = parse(['--aaa', 'bbb', 'ccc', '--ddd'], {
stopEarly: true,
});
t.deepEqual(argv, {
aaa: 'bbb',
_: ['ccc', '--ddd'],
});
t.end();
});