mytest 0.1.0

A fun game where you guess what number the computer has chosen.
Documentation
use std::env;
use std::process;

use mytest::Config;

fn main() {
    // --snip--
    let args: Vec<String> = env::args().collect();

    let config = Config::new(&args).unwrap_or_else(|err| {
        println!("Problem parsing arguments: {}", err);
        process::exit(1);
    });

    println!("Searching for {}", config.query);
    println!("In file {}", config.filename);

    if let Err(e) = mytest::run(config) {
        // --snip--
        println!("Application error: {}", e);

        process::exit(1);
    }
}