Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Describe convention about the default value for yes/no prompts #69

Open
ibnesayeed opened this issue Dec 23, 2020 · 1 comment
Open

Comments

@ibnesayeed
Copy link
Contributor

Many tools follow the convention of upper case letter used for the default value in y/n prompts. I think it is a good and concise way to convey an important aspect.

  • apt install shows Do you want to continue? [Y/n] prompt when the disk space requirement is significant. This is a case where the default value is Yes or Y and hitting <enter> without typing anything will continue with installation.
  • docker system prune on the other hand has the opposite default and shows the prompt Are you sure you want to continue? [y/N], which means hitting <enter> without typing anything will do nothing.

Is this convention out of scope of the document?

Moreover, we might also want to describe that a yes/no should accept all variations of yes, no, y, and n in case-insensitive manner.

@eqn-group
Copy link

eqn-group commented Mar 21, 2024

I think, continuing with the process is a careful choice and must not be made accidentally. so capital-Y Y should be used for yes, while n be used for no. keep it simple and rigid. and yes, it should must be case-sensitive.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants