1 2 3 4 5 6 7 8 9
use demand::Confirm; fn main() { let ms = Confirm::new("Are you sure?") .affirmative("Yes!") .negative("No."); let yes = ms.run().expect("error running confirm"); println!("yes: {}", yes); }