trivial "pythonic" fixes
This commit is contained in:
parent
98e0a8199f
commit
7ae4c613ac
16
dnseval.py
16
dnseval.py
@ -43,13 +43,15 @@ resolvers = dns.resolver.get_default_resolver().nameservers
|
|||||||
|
|
||||||
|
|
||||||
def usage():
|
def usage():
|
||||||
print('%s version %1.1f\n' % (__PROGNAME__, __VERSION__))
|
print("""%s version %1.1f
|
||||||
print('syntax: %s [-h] [-f server-list] [-c count] [-t type] [-w wait] hostname' % __PROGNAME__)
|
|
||||||
print(' -h --help show this help')
|
usage: %s [-h] [-f server-list] [-c count] [-t type] [-w wait] hostname
|
||||||
print(' -f --file dns server list to use (default: system resolvers)')
|
-h --help show this help
|
||||||
print(' -c --count number of requests to send (default: 10)')
|
-f --file dns server list to use (default: system resolvers)
|
||||||
print(' -w --wait maximum wait time for a reply (default: 5)')
|
-c --count number of requests to send (default: 10)
|
||||||
print(' -t --type DNS request record type (default: A)')
|
-w --wait maximum wait time for a reply (default: 5)
|
||||||
|
-t --type DNS request record type (default: A)
|
||||||
|
""" % (__PROGNAME__, __VERSION__, __PROGNAME__))
|
||||||
exit()
|
exit()
|
||||||
|
|
||||||
|
|
||||||
|
@ -44,7 +44,7 @@ should_stop = False
|
|||||||
|
|
||||||
def usage():
|
def usage():
|
||||||
print("""%s version %1.1f
|
print("""%s version %1.1f
|
||||||
syntax: %s [-h] [-q] [-v] [-s server] [-p port] [-P port] [-S address] [-c count] [-t type] [-w wait] hostname
|
usage: %s [-h] [-q] [-v] [-s server] [-p port] [-P port] [-S address] [-c count] [-t type] [-w wait] hostname
|
||||||
-h --help Show this help
|
-h --help Show this help
|
||||||
-q --quiet Quiet
|
-q --quiet Quiet
|
||||||
-v --verbose Print actual dns response
|
-v --verbose Print actual dns response
|
||||||
|
@ -85,7 +85,7 @@ if has_whois:
|
|||||||
|
|
||||||
def usage():
|
def usage():
|
||||||
print('%s version %1.1f\n' % (__PROGNAME__, __VERSION__))
|
print('%s version %1.1f\n' % (__PROGNAME__, __VERSION__))
|
||||||
print('syntax: %s [-h] [-q] [-a] [-s server] [-p port] [-c count] [-t type] [-w wait] hostname' % __PROGNAME__)
|
print('usage: %s [-h] [-q] [-a] [-s server] [-p port] [-c count] [-t type] [-w wait] hostname' % __PROGNAME__)
|
||||||
print(' -h --help Show this help')
|
print(' -h --help Show this help')
|
||||||
print(' -q --quiet Quiet')
|
print(' -q --quiet Quiet')
|
||||||
print(' -a --asn Turn on AS# lookups for each hop encountered')
|
print(' -a --asn Turn on AS# lookups for each hop encountered')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user