extern crate clap;
use clap::{Arg, Command};
use std::process;
fn main() {
let matches = Command::new(env!("CARGO_PKG_NAME"))
.version(env!("CARGO_PKG_VERSION"))
.about(env!("CARGO_PKG_DESCRIPTION")) .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);
}
}
}