bugfix in parser for query

This commit is contained in:
AJ ONeal 2017-02-25 13:05:07 -07:00
parent 6ac3e36b1f
commit c428a89fb1
1 changed files with 4 additions and 1 deletions

View File

@ -278,6 +278,7 @@ cli.main(function (args, cli) {
return; return;
} }
cli.type = cli.t = arg.toUpperCase(); cli.type = cli.t = arg.toUpperCase();
return;
} }
if (/^\+time=/.test(arg)) { if (/^\+time=/.test(arg)) {
@ -287,6 +288,7 @@ cli.main(function (args, cli) {
return; return;
} }
cli.timeout = Math.round(parseInt(arg.replace(/\+time=/, ''), 10) * 1000); cli.timeout = Math.round(parseInt(arg.replace(/\+time=/, ''), 10) * 1000);
return;
} }
if (/^@/.test(arg)) { if (/^@/.test(arg)) {
@ -296,10 +298,11 @@ cli.main(function (args, cli) {
return; return;
} }
cli.nameserver = cli.n = arg; cli.nameserver = cli.n = arg;
return;
} }
if (cli.query) { if (cli.query) {
console.error("'@server' was specified more than once"); console.error("'query' was specified more than once");
process.exit(1); process.exit(1);
return; return;
} }