arg_combinators 0.6.0

Command line argument combinators
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#![type_length_limit = "2097152"]
extern crate arg_combinators;

use arg_combinators::*;

fn main() {
    match free_str()
        .map(|v| v.get(0).cloned())
        .required()
        .just_parse_env_default()
    {
        Ok(name) => println!("Hello, {}!", name),
        Err(msg) => eprintln!("Error: {}", msg),
    }
}