mirror of
https://github.com/GAM-team/GAM.git
synced 2026-07-03 12:21:35 +00:00
Prepare for the future (#618)
This commit is contained in:
@@ -12305,7 +12305,15 @@ def ProcessGAMCommand(args):
|
|||||||
elif command in [u'delegate', u'delegates']:
|
elif command in [u'delegate', u'delegates']:
|
||||||
addDelegates(users, 4)
|
addDelegates(users, 4)
|
||||||
elif command == u'watch':
|
elif command == u'watch':
|
||||||
|
if len(sys.argv) > 4:
|
||||||
|
watchWhat = sys.argv[4].lower()
|
||||||
|
else:
|
||||||
|
watchWhat = u'gmail'
|
||||||
|
if watchWhat == u'gmail':
|
||||||
watchGmail(users)
|
watchGmail(users)
|
||||||
|
else:
|
||||||
|
print u'ERROR: %s is not a valid argument for "gam <users> watch"' % watchWhat
|
||||||
|
sys.exit(2)
|
||||||
else:
|
else:
|
||||||
print u'ERROR: %s is not a valid argument for "gam"' % command
|
print u'ERROR: %s is not a valid argument for "gam"' % command
|
||||||
sys.exit(2)
|
sys.exit(2)
|
||||||
|
|||||||
Reference in New Issue
Block a user