argp 0.4.0

Derive-based argument parser optimized for code size
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// This example is based on null-app example in argparse-rosetta-rs and it's
// used for measuring the size overhead.

use std::env;

fn main() {
    let args: Vec<_> = env::args_os().collect();

    if args.len() >= 10 {
        println!("{:#?}", args.len());
    } else {
        println!("{:#?}", args);
    }
}