Skip to main content

exit_code_for

Function exit_code_for 

Source
pub fn exit_code_for(err: &CliError) -> u8
Expand description

Map a CliError to its process exit code without parsing argv.

Useful for unit tests and library callers that already hold a typed error.