pub fn confirm(prompt: &str, abort: Option<bool>) -> bool
Expand description
A “yes-or-no” input. The function loops until the user inputs either “y” or “n”
§Example
use pythonic_helper::io::confirm;
if confirm("Do you want to continue?", None) {
println!("Continuing...");
} else {
println!("No? Alright then.");
}