Documentation
use std::env;
use std::process::exit;
use vingrep::Config;

fn main() {

    // Reading the query and the filename
    let config = Config::parse_config(env::args()).unwrap_or_else(|err| {
        eprintln!("Args Error: {}",err);
        exit(1)
    });

    // Running the logic
    if let Err(e) = vingrep::run(config) {
        eprintln!("IO Error: {}", e);
        exit(1);
    }
}