mirror of
https://github.com/r4sas/py-i2phosts
synced 2025-08-26 21:52:40 +00:00
py-i2phosts-checker: add --config option
This commit is contained in:
parent
85263b65cc
commit
76e6685a15
@ -24,7 +24,9 @@ parser = argparse.ArgumentParser(
|
|||||||
description='Hosts checker for py-i2phosts.',
|
description='Hosts checker for py-i2phosts.',
|
||||||
epilog='Report bugs to http://zzz.i2p/topics/733')
|
epilog='Report bugs to http://zzz.i2p/topics/733')
|
||||||
parser.add_argument('-d', '--debug', action='store_true',
|
parser.add_argument('-d', '--debug', action='store_true',
|
||||||
help='enable debug messages')
|
help='write debug messages to stdout'),
|
||||||
|
parser.add_argument('-c', '--config', default='/etc/py-i2phosts/checker.conf', dest='config_file',
|
||||||
|
help='config file to use')
|
||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
|
|
||||||
# configure logger
|
# configure logger
|
||||||
|
Loading…
x
Reference in New Issue
Block a user