mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-08-10 23:35:44 +02:00

* Refresh choice.md * Fix help example * Fix syntax error * Fix grammar error Co-authored-by: CleanMachine1 <78213164+CleanMachine1@users.noreply.github.com> * Fix grammar error Co-authored-by: CleanMachine1 <78213164+CleanMachine1@users.noreply.github.com> * Use `the current user` * Remove .swp file * Simplify --help example * Fix grammar error Co-authored-by: Jack Lin <46962923+blueskyson@users.noreply.github.com> * Apply suggestions from code review Co-authored-by: CleanMachine1 <78213164+CleanMachine1@users.noreply.github.com> Co-authored-by: CleanMachine1 <78213164+CleanMachine1@users.noreply.github.com> Co-authored-by: Jack Lin <46962923+blueskyson@users.noreply.github.com>
28 lines
718 B
Markdown
28 lines
718 B
Markdown
# choice
|
|
|
|
> Prompt user to select a choice and return the selected choice index.
|
|
> More information: <https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/choice>.
|
|
|
|
- Prompt the current user to select a `Y` or `N` choice:
|
|
|
|
`choice`
|
|
|
|
- Prompt the current user to select a [c]hoice from a specific set:
|
|
|
|
`choice /c {{AB}}`
|
|
|
|
- Prompt the current user to select a choice with a specific [m]essage:
|
|
|
|
`choice /m "{{message}}"`
|
|
|
|
- Prompt the current user to select a [c]ase-[s]ensitive [c]hoice from a specific set:
|
|
|
|
`choice /cs /c {{Ab}}`
|
|
|
|
- Prompt the current user to select a choice and prefer the [d]efault choice in a specific [t]ime:
|
|
|
|
`choice /t {{5}} /d {{N}}`
|
|
|
|
- Display help:
|
|
|
|
`choice /?`
|