use 'add_application_options' to add -S
This commit is contained in:
parent
8deb9da047
commit
dddfa6d36c
1 changed files with 2 additions and 4 deletions
|
|
@ -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))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue