pub fn exit_code_for(err: &CliError) -> u8
Map a CliError to its process exit code without parsing argv.
CliError
Useful for unit tests and library callers that already hold a typed error.