diff options
author | Jon Bergli Heier <snakebite@jvnv.net> | 2010-12-01 12:06:14 +0100 |
---|---|---|
committer | Jon Bergli Heier <snakebite@jvnv.net> | 2010-12-01 12:06:14 +0100 |
commit | 50760a202b4d655d828cd420fa5745210e33f657 (patch) | |
tree | 673298f527ce71d2a3d76c1726660911be43fd33 | |
parent | 447d3728b7933e93ac00949c8735f8cf416a4c06 (diff) |
Added a parser option for port.
-rwxr-xr-x | gitnoti.py | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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() |