Skip to main content

resolve

Function resolve 

Source
pub fn resolve(
    strict_flag: Option<bool>,
    env_strict: Option<&OsStr>,
    argv0: Option<&OsStr>,
) -> CompatibilityMode
Expand description

Resolve the compatibility mode from CLI flag, env var, and argv[0].

strict_flag is the post-parse value of --strict/--no-strict if set. env_strict is the value of $RUSTY_SPONGE_STRICT. argv0 is the executable name (the first argv element, as the OS provided it).