Commit 3a94e301 authored by Alexandre's avatar Alexandre

Fix usage

parent ae579f6d
......@@ -68,7 +68,7 @@ def error(msg=None, exit=True):
def usage(msg=None):
if msg:
print(msg,file=sys.stderr)
print("Usage: %s [options] url-or-servername [domain-name [DNS type]]" % sys.argv[0], file=sys.stderr)
print("Usage: %s [options] url-or-servername domain-name [DNS type]" % sys.argv[0], file=sys.stderr)
print("""Options
-t --dot Use DoT (by default use DoH)
-k --insecure Do not check the certificate
......
......@@ -20,7 +20,7 @@ tests:
args:
- '-h'
retcode: 0
partstderr: 'url-or-servername [domain-name [DNS type]]'
partstderr: 'url-or-servername domain-name [DNS type]'
stdout: ''
- exe: './homer.py'
......
Markdown is supported
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