Handle boolean params.
This commit is contained in:
parent
6939e49643
commit
e64a95d1d7
@ -165,7 +165,15 @@ exports.call = function (args) {
|
||||
if (!(matches = arg.match(PARAM_RE))) {
|
||||
throw 'invalid arg: '+arg;
|
||||
}
|
||||
params[matches[1]] = matches[2];
|
||||
var value = matches[2];
|
||||
if (value === 'true') {
|
||||
value = true;
|
||||
}
|
||||
else if (value === 'false') {
|
||||
value = false;
|
||||
}
|
||||
|
||||
params[matches[1]] = value;
|
||||
});
|
||||
|
||||
return connect().then(function (xo) {
|
||||
|
Loading…
Reference in New Issue
Block a user