blob: 63a29023c55bd931e9fd1f32c970eb4fec8febc5 [file] [log] [blame]
//! The n2 binary crate, it mostly just defers to the run function in the
//! library crate.
use log::debug;
fn main() -> std::process::ExitCode {
env_logger::init();
let exit_code = match n2::run::run() {
Ok(code) => code,
Err(err) => {
println!("n2: error: {}", err);
1
}
};
debug!("Exiting from main with exit code {}", exit_code);
exit_code.into()
}