Skip to main content

env_flag

Function env_flag 

Source
pub fn env_flag(name: &str, default: bool) -> bool
Expand description

Read a trimmed, ASCII-case-insensitive explicit boolean flag.

1, true, yes and on enable; 0, false, no and off disable. Missing, non-Unicode and unrecognized values use default.