rigrep 1.0.1

Rust implementation of grep from Rust Book
Documentation
//! `rigrep` is a cli tool that globally searches a regular expresssion and prints
//!     It takes arguments and a filename and string and performs a local search
//!
//! Then run `cargo run searchstring example-file.txt`
//! 	in the toplevel directory of any crate or workspace.
//!
//! If you wish to consume its core functionality as a library, see the
//! documentation for the `rigrep` crate.
use rigrep::Config;
use std::{env, process};

fn main() {
    let args = env::args();

    let config = Config::new(args).unwrap_or_else(|err| {
        eprintln!("Problem parsing arguments: {:?}", err);
        process::exit(1)
    });

    println!("Searching for: {:?}", config.query);
    println!("In file: {:?}", config.filename);

    if let Err(e) = rigrep::run(config) {
        eprintln!("Application error: {:?}", e);
        process::exit(1);
    }
}