main
Last change
on this file since d24f17c was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 15 months ago |
Initial commit
|
-
Property mode
set to
100644
|
File size:
312 bytes
|
Line | |
---|
1 | 'use strict';
|
---|
2 |
|
---|
3 | var parse = require('../');
|
---|
4 | var test = require('tape');
|
---|
5 |
|
---|
6 | test('stops parsing on the first non-option when stopEarly is set', function (t) {
|
---|
7 | var argv = parse(['--aaa', 'bbb', 'ccc', '--ddd'], {
|
---|
8 | stopEarly: true,
|
---|
9 | });
|
---|
10 |
|
---|
11 | t.deepEqual(argv, {
|
---|
12 | aaa: 'bbb',
|
---|
13 | _: ['ccc', '--ddd'],
|
---|
14 | });
|
---|
15 |
|
---|
16 | t.end();
|
---|
17 | });
|
---|
Note:
See
TracBrowser
for help on using the repository browser.