xer_minigrep 0.0.0

minigrep is a minimal version of grep as shown in the rust book.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use std::env;
use std::process;
use xer_minigrep::Config;

fn main() {
    let config = Config::build(env::args()).unwrap_or_else(|err| {
        eprintln!("ERROR: {err}");
        process::exit(1);
    });
    if let Err(err) = xer_minigrep::run(config) {
        eprintln!("ERROR: {err}");
        process::exit(1);
    };
}