Commit a25182a9 authored by Alexandre's avatar Alexandre
Browse files

Expand availabality of option --no-display-results

parent d186b919
......@@ -63,6 +63,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
......@@ -146,7 +147,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.
......@@ -661,7 +661,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):
......@@ -961,9 +961,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")
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