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: ...
1
vote
2answers
88 views

Default values for text-based confirmation prompt

In text-based environments, I've sometimes seen confirmation prompts in the form of Are you sure you want to _______? (Y/n) Generally, I've understood this to mean that Y is the default, and if I ...
2
votes
5answers
1k views

How to ask a confirmation question?

We often have to ask people to confirm an action. The usual text is: "Are you sure that you want to _________?" Are there any shorter but clear ways of asking this?