question 0.2.2

Ask a question, what more could you want?
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
extern crate question;
use question::{Answer, Question};

fn main() {
    let answer = Question::new("Continue?")
        .default(Answer::YES)
        .show_defaults()
        .confirm();

    if answer == Answer::YES {
        println!("Onward then!");
    } else {
        println!("Aborting...");
    }
}