1
0
mirror of https://github.com/r4sas/py-i2phosts synced 2025-01-09 06:18:05 +00:00

py-i2phosts-builder: add command line options support

This commit is contained in:
Hidden Z 2010-10-30 18:23:14 +00:00
parent b5e5cdf81e
commit 00b98dfc93

View File

@ -2,6 +2,15 @@
import os
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_SETTINGS_MODULE = 'settings'