git://repos.xcallymotion.com
/
motion2.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Built motion from commit 6a09e18b.|2.6.11
[motion2.git]
/
legacy-libs
/
node-pre-gyp
/
node_modules
/
minimist
/
test
/
stop_early.js
1
var parse = require('../');
2
var test = require('tape');
3
4
test('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
});