forked from rc/aircox
allow multiple commands
This commit is contained in:
parent
039bd7dfd1
commit
a1fe0b2f93
|
@ -177,10 +177,8 @@ class Command (BaseCommand):
|
|||
|
||||
if options.get('update'):
|
||||
Actions.update(date, mode = options.get('mode'))
|
||||
elif options.get('clean'):
|
||||
if options.get('clean'):
|
||||
Actions.clean(date)
|
||||
elif options.get('check'):
|
||||
if options.get('check'):
|
||||
Actions.check(date)
|
||||
else:
|
||||
raise CommandError('no action has been given')
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user