arnaucube
arnaucube/socketioMEANseedPublic Self-hosted repository
socketioMEANseed/www/node_modules/minimist/test/stop_early.js
www/node_modules/minimist/test/stop_early.jsRaw
 1var parse = require('../');
 2var test = require('tape');
 3
 4test('stops parsing on the first non-option when stopEarly is set', function (t) {
 5    var argv = parse(['--aaa', 'bbb', 'ccc', '--ddd'], {
 6        stopEarly: true
 7    });
 8
 9    t.deepEqual(argv, {
10        aaa: 'bbb',
11        _: ['ccc', '--ddd']
12    });
13
14    t.end();
15});