projects
/
yaffs-website
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Initial commit
[yaffs-website]
/
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
});