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