1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
use thndrs_lib::cli::Cli; fn main() { let cli = match Cli::parse_configured() { Ok(cli) => cli, Err(err) => { eprintln!("thndrs: {err}"); std::process::exit(2); } }; if let Err(err) = thndrs_lib::run(&cli) { eprintln!("thndrs: {err}"); std::process::exit(1); } }