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