blob: 5bf6c33f80f184cfdac025989be717d9a0b243d9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
use std::{env, process};
// TODO use the termination trait once rust-lang/rust#43301 is stable
#[allow(clippy::exit, clippy::print_stderr)]
#[cfg(not(tarpaulin_include))]
fn main() {
let exit = girt::run(env::args_os().skip(1).collect());
if let Some(message) = exit.get_message().as_ref() {
eprintln!("{message}");
}
process::exit(exit.get_status().to_code());
}
|