nfminigrep 0.1.0

Testing cargo publishing and learning Rust with the minigrep tutorial (https://doc.rust-lang.org/book/ch14-02-publishing-to-crates-io.html)
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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);
    }
}