mpn 0.2.1

Rust-based MPEG-4 inspector with variable output.
Documentation
extern crate clap;
use clap::{Arg, Command};
use std::process;

/// Central application entry point.
fn main() {
    let matches = Command::new(env!("CARGO_PKG_NAME"))
        .version(env!("CARGO_PKG_VERSION"))
        .about(env!("CARGO_PKG_DESCRIPTION")) // CARGO_PKG_HOMEPAGE
        .arg(
            Arg::new(mpn::ARG_MEDIAFILE)
                .help("Pass a valid mp4 file path as an argument for inspection")
                .required(true)
                .index(1),
        )
        .get_matches();

    match mpn::run(matches) {
        Ok(_) => {
            process::exit(0);
        }
        Err(e) => {
            eprintln!("error = \"{}\"", e);
            process::exit(1);
        }
    }
}