Commit 40322ce6 authored by alex's avatar alex
Browse files

Merge branch 'fix-option-debug' into 'master'

Remove short option for debug

See merge request bortzmeyer/homer!15
parents c5601734 b6f360a0
......@@ -45,7 +45,7 @@ Total elapsed time: 0.07 seconds (66.72 ms/request )
Possible options, besides `--dot`:
* --verbose or -v: Makes the program more talkative
* --debug or -d: Makes the program very talkative (sets verbose to true)
* --debug: Makes the program very talkative (sets verbose to true)
* --head or -e: (DoH) Uses only the HEAD HTTP method. Since the RFC
does not mention it, result is probably indefinite.
* --POST or -P: (DoH) Uses the POST HTTP method (default is GET)
......@@ -121,7 +121,8 @@ one):
```
When repeating tests, you can add a delay between tests, with `--delay
N`, where N is the (possibly fractional) number of seconds to wait.
N` or `-d N`, where N is the (possibly fractional) number of seconds
to wait.
### Monitoring with Nagios, Icinga, or similar software
......
......@@ -793,7 +793,7 @@ if not monitoring:
name = None
message = None
try:
optlist, args = getopt.getopt (sys.argv[1:], "hvdPkeV:r:f:d:t46",
optlist, args = getopt.getopt (sys.argv[1:], "hvPkeV:r:f:d:t46",
["help", "verbose", "debug", "dot", "head",
"insecure", "POST", "vhost=",
"dnssec", "noedns", "ecs", "repeat=", "file=", "delay=",
......@@ -808,7 +808,7 @@ if not monitoring:
dot = True
elif option == "--verbose" or option == "-v":
verbose = True
elif option == "--debug" or option == "-d":
elif option == "--debug":
debug = True
verbose = True
elif option == "--HEAD" or option == "--head" or option == "-e":
......
......@@ -144,7 +144,7 @@ tests:
- 'doh'
- 'check'
args:
- '-d'
- '--debug'
- '--check'
- 'https://doh.bortzmeyer.fr'
- 'www.afnic.fr'
......@@ -156,7 +156,7 @@ tests:
- 'doh'
- 'check'
args:
- '-d'
- '--debug'
- '--check'
- 'https://doh.bortzmeyer.fr'
- 'curl.haxx.se'
......@@ -255,7 +255,7 @@ tests:
- 'check'
- 'forceIPv4'
args:
- '-d'
- '--debug'
- '-4'
- '--check'
- 'https://dns.google/dns-query'
......@@ -269,7 +269,7 @@ tests:
- 'check'
- 'forceIPv4'
args:
- '-d'
- '--debug'
- '-4'
- '--check'
- 'https://dns.google/dns-query'
......@@ -283,7 +283,7 @@ tests:
- 'check'
- 'forceIPv6'
args:
- '-d'
- '--debug'
- '-6'
- '--check'
- 'https://dns.google/dns-query'
......@@ -297,7 +297,7 @@ tests:
- 'check'
- 'forceIPv6'
args:
- '-d'
- '--debug'
- '-6'
- '--check'
- 'https://dns.google/dns-query'
......
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