Skip to main content

resolve_flag_pair

Function resolve_flag_pair 

Source
pub fn resolve_flag_pair(
    cli_flag: bool,
    cli_no_flag: bool,
    name: &'static str,
    no_name: &'static str,
    env_flag: Option<EnvFlag>,
    env_no_flag: Option<EnvFlag>,
) -> (Flag, Flag)
Expand description

Resolve a pair of mutually exclusive boolean flags from the CLI and environment variables.

If either flag is set on the command line, both environment variables are ignored so the CLI retains precedence over the full pair.