minigrepwebdot 0.1.0

Minigrep is a command-line utility tool that helps to search for occurences of words on a file.
Documentation
use std::env;
use std::process;

use minigrepwebdot::Config;

fn main() {
    let config = Config::build(env::args()).unwrap_or_else(|err| {
        eprintln!("Problem parsing arguments: {err}");
        process::exit(1);
    });
    
    eprintln!("Searching for '{}' in {}", config.query, config.file_path);
    
    if let Err(e) = minigrepwebdot::run(config) {
        eprintln!("Application error: {e}");
        process::exit(1);
    };
}