argx 0.3.0

Expressive command-line parsing and configuration for Rust.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use argx::argx;

#[derive(argx::Args)]
struct Command;

#[argx(handler = Command)]
fn first() -> Result<(), ()> {
    Ok(())
}

#[argx(handler = Command)]
fn second() -> Result<(), ()> {
    Ok(())
}

fn main() {}