From e0a513c2c483b5f49a6989d0d9a01044259763ea Mon Sep 17 00:00:00 2001 From: gpkvt Date: Fri, 12 Aug 2022 19:05:49 +0200 Subject: [PATCH] Added --version parameter --- tts.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tts.py b/tts.py index f4388b4..57a6c36 100644 --- a/tts.py +++ b/tts.py @@ -575,6 +575,12 @@ msg_queue = {} logging.basicConfig(level=logging.DEBUG, format='%(asctime)s %(module)s %(threadName)s %(levelname)s: %(message)s') 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(): """Main loop"""