use std::env;
use std::process;
use nfminigrep;
use nfminigrep::Config;
fn main() {
let config = match Config::new(env::args()) {
Err(msg) => { eprintln!("{}", msg); process::exit(1) },
Ok(c) => c,
};
if let Err(e) = nfminigrep::run(config) {
eprintln!("Something went wrong with the file");
process::exit(1);
}
}