20
votes
2answers
2k views

When is it appropriate to require the user to type out the entire word “yes” rather than simply accept “y” at a command-line yes/no prompt?

I've seen several command-line applications, including OpenSSH, which require the user to type the entire word yes or no at a yes/no prompt, rejecting single-letter inputs like y. Here's an example: ...