From a3a6cfdbe36dd60de8213c06366408e4be304c62 Mon Sep 17 00:00:00 2001 From: tretrauit Date: Tue, 20 Jun 2023 18:51:21 +0700 Subject: [PATCH] cli: Y/n instead of y/n --- vollerei/cli/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vollerei/cli/utils.py b/vollerei/cli/utils.py index 2ddcfb2..f41b0a7 100644 --- a/vollerei/cli/utils.py +++ b/vollerei/cli/utils.py @@ -6,8 +6,8 @@ def ask(question: str): print(question + " [Y/n] Y") return True while True: - answer = input(question + " [y/n] ") - if answer.lower() in ["y", "yes"]: + answer = input(question + " [Y/n] ") + if answer.lower().strip() in ["y", "yes", ""]: return True # Pacman way, treat all other answers as no else: