Accept exit to exit the program when taking arguments
This commit is contained in:
@@ -194,7 +194,7 @@ class PromptUser:
|
|||||||
))
|
))
|
||||||
print(" "*4+"[0] exit\n")
|
print(" "*4+"[0] exit\n")
|
||||||
choice = input("> ")
|
choice = input("> ")
|
||||||
while not choice.lower() in choices+choicesByIndex:
|
while not choice.lower() in choices+choicesByIndex+["exit"]:
|
||||||
print("Invalid input\n")
|
print("Invalid input\n")
|
||||||
programModeIndex = input("> ")
|
programModeIndex = input("> ")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user