Skip to main content

flag

Function flag 

Source
pub fn flag(key: &str) -> bool
Expand description

True when the variable is set to a truthy value (1, true, yes, on, …). False when unset or set to 0 / false / off / no / empty.