pub fn exit_for(result: &Result<()>) -> i32Expand description
Inspects result for a CliExit anywhere in its error chain and
returns the process exit code to use: 0 for Ok, the carried code
for a CliExit, or 1 for any other error (matching the default
anyhow/clap behavior for a plain Err).