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
197 downloads per month
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