pub fn strip_global_output(args: Vec<OsString>) -> Vec<OsString>Expand description
Remove the global --output flag (and its value) from an
args_os() vector before a subcommand_passthrough subtree
re-parses with its own clap definition.
clap’s outer global = true doesn’t reach passthrough subtrees
(their post-name tokens are captured as trailing_var_arg), so
the inner parser would otherwise reject --output as unknown.
This helper is idempotent — safe to call even when the flag is
absent.