use 'add_application_options' to add -S

This commit is contained in:
Romain Bignon 2010-07-03 14:34:55 +02:00
commit dddfa6d36c

View file

@ -80,10 +80,8 @@ class Monboob(ConsoleApplication):
'smtp': 'localhost', 'smtp': 'localhost',
'html': 0} 'html': 0}
def __init__(self, *args, **kwargs): def add_application_options(self, group):
ConsoleApplication.__init__(self, *args, **kwargs) group.add_option('-S', '--smtpd', help='run a fake smtpd server and set the port')
self._parser.add_option('-S', '--smtpd', help='run a fake smtpd server and set the port')
def create_weboob(self): def create_weboob(self):
return Weboob(scheduler=MonboobScheduler(self)) return Weboob(scheduler=MonboobScheduler(self))