add ability to add application specific options
This commit is contained in:
parent
6f1cec035d
commit
fad7d2d56c
3 changed files with 33 additions and 18 deletions
|
|
@ -31,9 +31,8 @@ class Videoob(ConsoleApplication):
|
|||
COPYRIGHT = 'Copyright(C) 2010 Christophe Benz, Romain Bignon'
|
||||
CONFIG = {}
|
||||
|
||||
def __init__(self):
|
||||
ConsoleApplication.__init__(self)
|
||||
self._parser.add_option('--nsfw', action='store_true', help='enable non-suitable for work videos')
|
||||
def add_application_options(self, group):
|
||||
group.add_option('--nsfw', action='store_true', help='enable non-suitable for work videos')
|
||||
|
||||
def main(self, argv):
|
||||
self.load_modules(ICapVideoProvider)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue