rust-lang / mdBook

Create book from markdown files. Like Gitbook but implemented in Rust
https://rust-lang.github.io/mdBook/
Mozilla Public License 2.0
17.84k stars 1.62k forks source link

Use capital letters to indicate the default value in (y/n) prompts #2395

Open diegostafa opened 4 months ago

diegostafa commented 4 months ago

Problem

currently there is no way to tell the default value in a yes/no question. for example, in the prompt Do you want a .gitignore to be created? (y/n) it is not clear what pressing the return key will do

Proposed Solution

generally the default option is specified with a capital letter the previous example would turn into: Do you want a .gitignore to be created? (y/N)

Notes

No response