File size: 318 Bytes
18d65b9 | 1 2 3 4 5 6 7 8 9 10 | fn main() -> std::process::ExitCode {
match nanobrush_cli::run(std::env::args_os().skip(1), &mut std::io::stdout().lock()) {
Ok(()) => std::process::ExitCode::SUCCESS,
Err(e) => {
eprintln!("{e}");
std::process::ExitCode::from(if e.usage { 2 } else { 1 })
}
}
}
|