mirror of
https://github.com/r4sas/py-i2phosts
synced 2025-01-10 14:58:05 +00:00
py-i2phosts-builder: add command line options support
This commit is contained in:
parent
b5e5cdf81e
commit
00b98dfc93
@ -2,6 +2,15 @@
|
|||||||
|
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
|
import argparse
|
||||||
|
|
||||||
|
# parse command line options
|
||||||
|
parser = argparse.ArgumentParser(
|
||||||
|
description='Hosts builder for py-i2phosts.',
|
||||||
|
epilog='Report bugs to http://zzz.i2p/topics/733')
|
||||||
|
parser.add_argument('-c', '--config', default='/etc/py-i2phosts/builder.conf', dest='config_file',
|
||||||
|
help='config file to use')
|
||||||
|
args = parser.parse_args()
|
||||||
|
|
||||||
# django setup
|
# django setup
|
||||||
DJANGO_SETTINGS_MODULE = 'settings'
|
DJANGO_SETTINGS_MODULE = 'settings'
|
||||||
|
Loading…
Reference in New Issue
Block a user