Skip to main content

resolve_flag

Function resolve_flag 

Source
pub fn resolve_flag(
    cli_flag: bool,
    name: &'static str,
    env_flag: EnvFlag,
) -> Flag
Expand description

Resolve a boolean flag from CLI arguments and an environment variable.

The CLI argument takes precedence over the environment variable. Returns a Flag with the resolved value and source.