miniprep_ot 0.2.0

Miniprep_ot cargo project to get Rust taught
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use std::{env, process};

use miniprep_ot::Config;
fn main() {
    // let args: Vec<String> = env::args().collect();
    let config = Config::build(env::args()).unwrap_or_else(|err| {
        eprintln!("Problem parsing arguments: {}", err);
        process::exit(1);
    });
    println!("--> Search of '{}'", config.query);
    println!("--> In file   '{}'", config.filename);

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