Accept exit to exit the program when taking arguments

This commit is contained in:
Ali Parlakci
2018-07-12 21:09:31 +03:00
parent b357dff52c
commit dd671fd738

View File

@@ -194,7 +194,7 @@ class PromptUser:
))
print(" "*4+"[0] exit\n")
choice = input("> ")
while not choice.lower() in choices+choicesByIndex:
while not choice.lower() in choices+choicesByIndex+["exit"]:
print("Invalid input\n")
programModeIndex = input("> ")