• File: stop_early-20260618145021.js
  • Full Path: /home6/laduliya/test.mydthpay.com/node_modules/npm/node_modules/mkdirp/node_modules/minimist/test/stop_early-20260618145021.js
  • Date Modified: 10/26/1985 11:45 AM
  • File size: 328 bytes
  • MIME-type: text/plain
  • Charset: utf-8
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();
});