1/// Parses a boolean value from common operator-friendly strings. 2#[must_use] 3pub fn parse_bool(value: &str) -> Option<bool> { 4 match value { 5 "true" | "1" | "yes" | "on" => Some(true), 6 "false" | "0" | "no" | "off" => Some(false), 7 _other => None, 8 } 9}