Sha256: 7a1095012811a80eaaa8d6e789abdc5738d52cd5680952d7d7085288168f1c0c

Contents?: true

Size: 328 Bytes

Versions: 435

Compression:

Stored size: 328 Bytes

Contents

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();
});

Version data entries

435 entries across 234 versions & 32 rubygems

Version Path
disco_app-0.13.6.pre.puma.pre.3 test/dummy/node_modules/portfinder/node_modules/minimist/test/stop_early.js
disco_app-0.13.6.pre.puma.pre.3 test/dummy/node_modules/webpack/node_modules/minimist/test/stop_early.js
disco_app-0.13.6.pre.puma.pre.3 test/dummy/node_modules/file-loader/node_modules/minimist/test/stop_early.js
disco_app-0.13.6.pre.puma.pre.3 test/dummy/node_modules/style-loader/node_modules/minimist/test/stop_early.js
trusty-cms-5.0.1 node_modules/minimist/test/stop_early.js
trusty-cms-4.3.5 node_modules/minimist/test/stop_early.js
trusty-cms-5.0.0 node_modules/minimist/test/stop_early.js
isomorfeus-puppetmaster-0.5.2 node_modules/minimist/test/stop_early.js
isomorfeus-puppetmaster-0.5.1 node_modules/minimist/test/stop_early.js
isomorfeus-puppetmaster-0.5.0 node_modules/minimist/test/stop_early.js
trusty-cms-4.3.4 node_modules/minimist/test/stop_early.js
trusty-cms-4.3.3 node_modules/minimist/test/stop_early.js
trusty-cms-4.3.2 node_modules/minimist/test/stop_early.js
trusty-cms-4.3.1 node_modules/minimist/test/stop_early.js
boring_generators-0.11.0 tmp/templates/app_template/node_modules/minimist/test/stop_early.js
trusty-cms-4.3 node_modules/minimist/test/stop_early.js
boring_generators-0.10.0 tmp/templates/app_template/node_modules/minimist/test/stop_early.js
trusty-cms-4.2.3 node_modules/minimist/test/stop_early.js
boring_generators-0.9.0 tmp/templates/app_template/node_modules/minimist/test/stop_early.js
tang-0.2.1 spec/tang_app/node_modules/minimist/test/stop_early.js