Merge pull request #827 from PierreBastiani/user_input-quality_of_life

check for authorise 'y' without trailing space
This commit is contained in:
Richard Beales
2023-04-12 19:36:58 +01:00
committed by GitHub

View File

@@ -372,7 +372,7 @@ while True:
flush=True) flush=True)
while True: while True:
console_input = utils.clean_input(Fore.MAGENTA + "Input:" + Style.RESET_ALL) console_input = utils.clean_input(Fore.MAGENTA + "Input:" + Style.RESET_ALL)
if console_input.lower() == "y": if console_input.lower().rstrip() == "y":
user_input = "GENERATE NEXT COMMAND JSON" user_input = "GENERATE NEXT COMMAND JSON"
break break
elif console_input.lower().startswith("y -"): elif console_input.lower().startswith("y -"):