Added --version parameter

This commit is contained in:
gpkvt 2022-08-12 19:05:49 +02:00
parent 5632eb6925
commit 5060d2a790
1 changed files with 6 additions and 0 deletions

6
tts.py
View File

@ -575,6 +575,12 @@ msg_queue = {}
logging.basicConfig(level=logging.DEBUG, format='%(asctime)s %(module)s %(threadName)s %(levelname)s: %(message)s') logging.basicConfig(level=logging.DEBUG, format='%(asctime)s %(module)s %(threadName)s %(levelname)s: %(message)s')
sys.tracebacklimit = 0 sys.tracebacklimit = 0
if sys.argv[1:]:
if sys.argv[1] == "--version":
print('Simple TTS Bot')
print('Version 1.1.0')
sys.exit(1)
def main(): def main():
"""Main loop""" """Main loop"""