pub fn parse_global(
args: &[String],
env: impl Fn(&str) -> Option<String>,
) -> Result<(CliConfig, Vec<String>), String>Expand description
Split leading global options from the subcommand arguments. env is
consulted for RIGHTKIT_CONTROL_POLICY / RIGHTKIT_CONTROL_EVENTS; flags
win over the environment.