bugfix in parser for query
This commit is contained in:
		
							parent
							
								
									6ac3e36b1f
								
							
						
					
					
						commit
						c428a89fb1
					
				@ -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;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user