Function uquery::boolean

source · []
pub fn boolean(text: &str, def: Option<bool>) -> QueryResult<bool>
Expand description

Queries the user for boolean input, with an optional default.

Errors

Fails with io errors with the stdin or stdout.