use std::process::ExitCode;
#[tokio::main(flavor = "multi_thread")]
async fn main() -> ExitCode {
let args = std::env::args().skip(1).collect::<Vec<_>>();
match knott::run(args).await {
Ok(code) => ExitCode::from(code as u8),
Err(err) => {
eprintln!("knott: {err:#}");
ExitCode::from(1)
}
}
}