From 00b98dfc937178e9be82aacd0d20a47c50e95fc2 Mon Sep 17 00:00:00 2001 From: Hidden Z Date: Sat, 30 Oct 2010 18:23:14 +0000 Subject: [PATCH] py-i2phosts-builder: add command line options support --- py-i2phosts-builder | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/py-i2phosts-builder b/py-i2phosts-builder index 64441bf..929641a 100755 --- a/py-i2phosts-builder +++ b/py-i2phosts-builder @@ -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'