Function uquery::boolean_with_default[][src]

pub fn boolean_with_default(string: &str, def: Option<bool>) -> bool

Queries the user for boolean input.

If no default is given the user will only be allowed past if the value given begins with a 'y' or a 'n'. Otherwise, they can specify either true or false as the default.