use std::{env, process};
use makogrep::{run, Config};
fn main() {
let args = env::args();
let config = Config::build(args).unwrap_or_else(|error| {
eprintln!("Problem parsing arguments: {error}");
process::exit(1);
});
if let Err(e) = run(config) {
eprintln!("Application error:{e}");
process::exit(1);
}
}