Yes/No prompt is case sensitive
This is not a huge issue, but when seeing a (Y/n)
prompt, it may not be immediately obvious to the user that they must enter Y
instead of y
to confirm the action.
I was wondering if there was a best practice when it comes to these prompts, so I did some googling... and from what I can find there is not. However, what I have seen is that the most common approach to a prompt formatted like [Y/n]
seems to be case-insensitive, and accept the capitalized option in the prompt as a default should the user just hit enter. This feels true in my experience as well, though I can't say that I normally think about yes/no prompts very often.
I think it would be a good (if trivial) QOL improvement to make the prompt case-insensitive. (I think it makes sense to not have a default response)