usage-cli 2.18.2

CLI for working with usage-based CLIs
Documentation
1
2
3
4
5
pub use std::env::*;

pub fn var_true(key: &str) -> bool {
    matches!(var(key), Ok(v) if v == "1" || v == "true")
}