bene 0.1.0

A command line argument parser/reader
Documentation

bene

Bene is a library for parsing command line arguments efficiently and elegantly.

Example:
The command line arguments:

-f 30 --length 5 --lib

Would be parsed as:

let mut frames: usize = 30;
let mut length = 3; // inferred i32
let mut lib = false; // non valued flags are treated as booleans

// let input = "-f 30 --length 5 --lib"
bene::Intake::new()
    .arg('f', "frames", &mut frames)
    .arg('l', "length", &mut length)
    .arg('L', "lib", &mut lib) // case sensitive!
    .process(input);

assert_eq!(frames, 20);
assert_eq!(length, 5);
assert_eq!(lib, true);