5 releases (2 stable)

new 1.0.1 Apr 23, 2025
0.1.2 Apr 21, 2025
0.1.1 Apr 21, 2025
0.1.0 Feb 21, 2025

#42 in #arguments-parser

Download history 119/week @ 2025-02-19 21/week @ 2025-02-26 197/week @ 2025-04-16

197 downloads per month

MIT license

7KB
130 lines

CLILIB

a macro to do command line argument parsing

define! {
    Data; //name of the struct
    flags { //any command line flags go here
        t: bool = "w"|"h",  // this creates a feild on the struct called t, and makes -w and -h set it
        f: String = "f", //supports more than just bools, and unlike bools requires an argumnet
    };
    args {
        file: String, // a single argument
    };
}

Dependencies

~105KB