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