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

cli.confirm should allow for defaults #134

Open
TranquilMarmot opened this issue Jan 14, 2020 · 2 comments
Open

cli.confirm should allow for defaults #134

TranquilMarmot opened this issue Jan 14, 2020 · 2 comments

Comments

@TranquilMarmot
Copy link

It's common in CLIs to have a yes/no prompt with a default, i.e. (Y/n) implies that just pressing enter will default to "yes".

It would be nice to have an option for cli.confirm to be able to accept a default answer (this would probably also be nice for cli.prompt)

@RasPhilCo
Copy link
Contributor

Good idea! Should be a straightforward PR if someone wants to pick this up.

@AaronConlon
Copy link

we need it.

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

No branches or pull requests

3 participants