-
-
Notifications
You must be signed in to change notification settings - Fork 135
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
Set a validator for Yes/No prompt #106
Comments
Thanks for reporting. I agree it's better to prevent erroneous input or display error message about invalid input so the user can correct. Can you please submit PR fixing this? |
@piotrmurach I am not very familiar your code, I don't necessarily have time recently.I suggest you fix this little issue by yourself. |
slowbro
added a commit
to slowbro/tty-prompt
that referenced
this issue
Oct 3, 2019
…valid/blank input
i fixed this 'little issue' - pr #114 |
piotrmurach
added a commit
that referenced
this issue
Oct 3, 2019
fix #106 - yes? and no? shouldn't raise an exception on invalid/blank input
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If I type a value that cannot be convert to
Boolean
will raise a exception:A validator should be set to prevent users from entering other values.
The text was updated successfully, but these errors were encountered: