Add help flag to imapnotify script
This commit is contained in:
parent
8b2c0dae17
commit
4894e5a32c
12
config.org
12
config.org
|
@ -1472,6 +1472,18 @@ if len(sys.argv) > 1:
|
|||
elif sys.argv[1] == "--status":
|
||||
getAccountServiceStates(oldAccounts)
|
||||
exit()
|
||||
elif sys.argv[1] == "--help":
|
||||
print("""\033[1;37mMbsync to IMAP Notify config generator.\033[0;37m
|
||||
|
||||
Usage: mbsync-imapnotify [options]
|
||||
|
||||
Options:
|
||||
--enable enable all services
|
||||
--disable disable all services
|
||||
--status fetch the status for all services
|
||||
--help show this help
|
||||
""", end='')
|
||||
exit()
|
||||
else:
|
||||
print(f"\033[0;31mFlag {sys.argv[1]} not recognised\033[0;37m")
|
||||
exit()
|
||||
|
|
|
@ -295,6 +295,18 @@ if len(sys.argv) > 1:
|
|||
elif sys.argv[1] == "--status":
|
||||
getAccountServiceStates(oldAccounts)
|
||||
exit()
|
||||
elif sys.argv[1] == "--help":
|
||||
print("""\033[1;37mMbsync to IMAP Notify config generator.\033[0;37m
|
||||
|
||||
Usage: mbsync-imapnotify [options]
|
||||
|
||||
Options:
|
||||
--enable enable all services
|
||||
--disable disable all services
|
||||
--status fetch the status for all services
|
||||
--help show this help
|
||||
""", end='')
|
||||
exit()
|
||||
else:
|
||||
print(f"\033[0;31mFlag {sys.argv[1]} not recognised\033[0;37m")
|
||||
exit()
|
||||
|
|
Loading…
Reference in New Issue