Sign in
cobalt
/
cobalt
/
07081467c3d00b04a6a1162e0566a5a8b9cfe2d5
/
.
/
third_party
/
devtools
/
node_modules
/
minimist
/
test
/
parse_modified.js
blob: 21851b036ee6d92453f3820bb2d5442d75aecc6d [
file
] [
log
] [
blame
]
var
parse
=
require
(
'../'
);
var
test
=
require
(
'tape'
);
test
(
'parse with modifier functions'
,
function
(
t
)
{
t
.
plan
(
1
);
var
argv
=
parse
([
'-b'
,
'123'
],
{
boolean
:
'b'
});
t
.
deepEqual
(
argv
,
{
b
:
true
,
_
:
[
'123'
]
});
});