Skip to main content

flag

Function flag 

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

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