bugfix in parser for query
This commit is contained in:
parent
6ac3e36b1f
commit
c428a89fb1
|
@ -278,6 +278,7 @@ cli.main(function (args, cli) {
|
|||
return;
|
||||
}
|
||||
cli.type = cli.t = arg.toUpperCase();
|
||||
return;
|
||||
}
|
||||
|
||||
if (/^\+time=/.test(arg)) {
|
||||
|
@ -287,6 +288,7 @@ cli.main(function (args, cli) {
|
|||
return;
|
||||
}
|
||||
cli.timeout = Math.round(parseInt(arg.replace(/\+time=/, ''), 10) * 1000);
|
||||
return;
|
||||
}
|
||||
|
||||
if (/^@/.test(arg)) {
|
||||
|
@ -296,10 +298,11 @@ cli.main(function (args, cli) {
|
|||
return;
|
||||
}
|
||||
cli.nameserver = cli.n = arg;
|
||||
return;
|
||||
}
|
||||
|
||||
if (cli.query) {
|
||||
console.error("'@server' was specified more than once");
|
||||
console.error("'query' was specified more than once");
|
||||
process.exit(1);
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue