Skip to content
This repository has been archived by the owner on Feb 19, 2019. It is now read-only.

When prompting for a user yes/no answer, use a short [y/n] representation #689

Closed
christianrondeau opened this issue Mar 20, 2015 · 1 comment

Comments

@christianrondeau
Copy link

Here is how yes/no/skip answers are displayed:

Do you want to run the script?
NOTE: If you choose not to run the script, the installation will
fail.
Skip is an advanced option and most likely will never be wanted.

1) yes
2) no [Default - Press Enter]
3) skip

Here is a suggestion of how the prompt could look like:

Do you want to run the script? (Yes/No/Skip): y

In other words: when asking for a yes/no question, use the shorthand, similar to other windows command line tools.

Example:

  • xcopy: Overwrite C:\path\file.txt (Yes/No/All)?

For more information: https://groups.google.com/forum/#!topic/chocolatey/UVncL7PxXRg

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

No branches or pull requests

2 participants