auto-args 0.3.2

Parse command line arguments by defining a struct.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use auto_args::AutoArgs;

#[derive(AutoArgs, PartialEq, Debug)]
enum Exclusive {
    First { a: String },
}

#[test]
fn craziness() {
    println!("help: {}", Exclusive::help());
    println!("\n\n\n\n");
    assert!(Exclusive::help().contains("--first-a "));

    assert!(Exclusive::help().contains("--first-a "));

    assert!(Exclusive::from_iter(&[""]).is_err());
}