Skip to main content

pre_parse_global_flag_present

Function pre_parse_global_flag_present 

Source
pub(crate) fn pre_parse_global_flag_present(flag: &str) -> bool
Expand description

Like pre_parse_flag_present but scans past subcommands/positionals, honoring clap’s global = true placement (e.g. cast call --machine --help). Still stops at -- and skips values of known value-taking globals.