22fn main() {
23let res = inner_fn().context(CliError::OsErr);
2425if let Err(ref err) = res {
26 report::anyhow_err_full(err);
27// As the error contains a `CliError`, this code will match its
28 // error_code. In this case `71`. If there was no underlying `CliError`,
29 // the code will default to `70`.
30std::process::exit(err.exit_code());
31 }
32}