Skip to main content

Module global

Module global 

Source

StructsΒ§

GlobalArgs
Global arguments for the CLI.

ConstantsΒ§

VALUE_TAKING_GLOBAL_OPTIONS πŸ”’
Value-taking global options declared on GlobalArgs; their following argv token is the value, not a flag, and must not be considered by the pre-parse scan. Must stay in sync with the #[arg(... long, short)] declarations above.

FunctionsΒ§

emit_introspect_and_exit πŸ”’
init_thread_pool
Initialize the global thread pool.
pre_parse_flag_present πŸ”’
Returns whether flag is present among the binary’s leading top-level options.
pre_parse_flag_present_in πŸ”’
pre_parse_global_flag_present πŸ”’
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.
pre_parse_global_flag_present_in πŸ”’