simon 0.4.0

Library for declaratively specifying and parsing command line arguments
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
extern crate simon;

use simon::*;

fn main() {
    match free::<String>()
        .vec_singleton()
        .required()
        .parse_env()
        .result
    {
        Ok(name) => println!("Hello, {}!", name),
        Err(msg) => eprintln!("Error: {}", msg),
    }
}