Skip to main content

readstat/
main.rs

1#![allow(clippy::module_name_repetitions)]
2
3use clap::Parser;
4
5mod cli;
6mod run;
7
8fn main() {
9    let args = cli::ReadStatCli::parse();
10    if let Err(e) = run::run(args) {
11        eprintln!("Stopping with error: {e}");
12        // Exit 1 for runtime failures. clap reserves exit code 2 for
13        // usage/argument errors, so keep those distinct.
14        std::process::exit(1);
15    }
16    std::process::exit(0);
17}