first commit

This commit is contained in:
s.golasch
2023-08-01 13:49:46 +02:00
commit 1fc239fd54
20238 changed files with 3112246 additions and 0 deletions

31
build/node_modules/subarg/test/arg.js generated vendored Normal file
View File

@@ -0,0 +1,31 @@
var subarg = require('../');
var test = require('tape');
test('spaced multi sub-args', function (t) {
t.plan(2);
t.deepEqual(
subarg('beep -t [ boop -o a.txt -o b.txt -q ] -v'.split(/\s+/)),
{
_: [ 'beep'],
t: {
_: [ 'boop' ],
o: [ 'a.txt', 'b.txt' ],
q: true
},
v: true
}
);
t.deepEqual(
subarg('beep -t [boop -o a.txt -o b.txt -q] -v'.split(/\s+/)),
{
_: [ 'beep'],
t: {
_: [ 'boop' ],
o: [ 'a.txt', 'b.txt' ],
q: true
},
v: true
}
);
});