flag

Function flag 

Source
pub fn flag(yes: bool, no: bool, name: &str) -> Option<bool>
Expand description

Given a boolean flag pair (like --upgrade and --no-upgrade), resolve the value of the flag.