allow exit/quit with shortcut too

This commit is contained in:
iceman1001
2023-07-29 10:41:17 +02:00
parent 69463ce4d5
commit 6ee34622e8
+2 -2
View File
@@ -9,7 +9,7 @@ import chameleon_cmd
import colorama
import chameleon_cli_unit
import os
if os.name == 'posix':
import readline
@@ -169,7 +169,7 @@ class ChameleonCLI:
print("")
closing = True
if closing or cmd_str == "exit":
if closing or cmd_str == "exit" or cmd_str == "quit" or cmd_str.startswith('q', 0) or cmd_str.startswith('e', 0):
print("Bye, thank you. ^.^ ")
self.device_com.close()
sys.exit(996)