summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xgitnoti.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/gitnoti.py b/gitnoti.py
index e1f2de3..b18f26d 100755
--- a/gitnoti.py
+++ b/gitnoti.py
@@ -31,6 +31,7 @@ except:
parser = OptionParser()
parser.add_option('-s', '--host')
+parser.add_option('-p', '--port', type = 'int', default = 6667)
parser.add_option('-n', '--nick', default = 'git')
parser.add_option('-d', '--dir')
parser.add_option('-c', '--channel')
@@ -351,5 +352,5 @@ class BotFactory(protocol.ReconnectingClientFactory):
if __name__ == '__main__':
f = BotFactory()
- reactor.connectTCP(options.host, 6667, f)
+ reactor.connectTCP(options.host, options.port, f)
reactor.run()