Sign in
cobalt
/
cobalt
/
e83fce97d7405b0b5e569d961aa431b1112ac6ac
/
.
/
src
/
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'
]
});
});