• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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});
16