Commit 2f4ade58 authored by Alexandre's avatar Alexandre
Browse files

Expand availabality of option --no-display-results

parent 0a162ed2
......@@ -66,6 +66,7 @@ Possible options, besides `--dot`:
* --file INPUT_FILE: provide an input file with a list of domain name to query
(read the first line only, use --repeat N to read up to N lines of the file)
* --repeat N: repeat a test N times or read up to N lines of a file
* --no-display-results: do not output DNS response
### Check
......@@ -149,7 +150,6 @@ For example :
In order to focus on the time per request, you can suppress the
output by using the option `--no-display-results`.
This option only works with `--multistreams`.
Two modes are available. By default each response is read,
checked and displayed as soon as it is received.
......@@ -727,7 +727,7 @@ def print_result(connection, request, prefix=None, display_err=True):
size = request.response_size
if (dot and rcode) or (not dot and rcode == 200):
if not monitoring:
if not check or verbose:
if display_results and (not check or verbose):
if expect is not None and expect not in str(request.response):
......@@ -1046,9 +1046,6 @@ if not monitoring:
if sync and not multistreams:
usage("--sync cannot be used without --multistreams")
# if not display_results and not multistreams:
# usage("--no-display-results cannot be used without --multistreams")
# sys.exit(1)
if show_time and not multistreams:
usage("--time cannot be used without --multistreams")
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment