summaryrefslogtreecommitdiff
path: root/crocoite/cli.py
diff options
context:
space:
mode:
authorLars-Dominik Braun <lars@6xq.net>2018-09-29 16:51:57 +0200
committerLars-Dominik Braun <lars@6xq.net>2018-09-29 16:51:57 +0200
commit07c34b2d004f16798c17ed479679a511c6bd2f29 (patch)
treed3b0696a23ed155ab5fad067f6ab003166343e77 /crocoite/cli.py
parentcbcdde65aa667369b0890a042e5b44d6b1e377aa (diff)
downloadcrocoite-07c34b2d004f16798c17ed479679a511c6bd2f29.tar.gz
crocoite-07c34b2d004f16798c17ed479679a511c6bd2f29.tar.bz2
crocoite-07c34b2d004f16798c17ed479679a511c6bd2f29.zip
Add documentation
For -recursive and -irc
Diffstat (limited to 'crocoite/cli.py')
-rw-r--r--crocoite/cli.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/crocoite/cli.py b/crocoite/cli.py
index 8473a0d..63199c9 100644
--- a/crocoite/cli.py
+++ b/crocoite/cli.py
@@ -111,8 +111,13 @@ def irc ():
from configparser import ConfigParser
from .irc import Bot
+ parser = argparse.ArgumentParser(description='IRC bot.')
+ parser.add_argument('--config', '-c', help='Config file location', metavar='PATH', default='chromebot.ini')
+
+ args = parser.parse_args ()
+
config = ConfigParser ()
- config.read ('chromebot.ini')
+ config.read (args.config)
s = config['irc']
bot = Bot (