mq-run 0.9.2

Command-line interface for mq Markdown processing tool
Documentation
use clap::Parser;

#[cfg(feature = "use_mimalloc")]
#[global_allocator]
static GLOBAL: mimalloc::MiMalloc = mimalloc::MiMalloc;

fn main() -> std::process::ExitCode {
    let cli = mq_run::Cli::parse();
    match cli.run() {
        Ok(()) => std::process::ExitCode::SUCCESS,
        Err(err) => {
            if let Some(code) = mq_run::Cli::halt_exit_code(&err) {
                std::process::exit(code);
            }
            cli.report_error(&err);
            std::process::ExitCode::FAILURE
        }
    }
}