blob: bfc482980fcfb7a08ade859c99af14b10cec7268 (
plain)
1
2
3
4
5
6
7
|
use clap_v3::ArgMatches;
pub fn getbool(m: &ArgMatches, name: &str, cmp: &str) -> bool {
// unwrap is safe here because clap is configured with default values
m.values_of(name).unwrap().any(|v| v == cmp)
}
|