Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
GH-244 explicitly require Y/N for Command._ask
  • Loading branch information
AlvinRamoutar committed Dec 31, 2025
commit 92566d8a970ce5aaffd0cebef8a9f197d798b331
2 changes: 1 addition & 1 deletion src/manage/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -621,7 +621,7 @@ def _ask(self, fmt, *args, yn_text="Y/n", expect_char="y"):
resp = input().casefold()
except Exception:
return False
return not resp or resp.startswith(expect_char.casefold())
return not resp or resp == expect_char.casefold()

def ask_yn(self, fmt, *args):
"Returns True if the user selects 'yes' or confirmations are skipped."
Expand Down