2 releases
0.1.1 | Feb 17, 2022 |
---|---|
0.1.0 | Feb 17, 2022 |
#30 in #conditional
4KB
#Example
let Unconditionals = vec!["--Utestflag1","--Utestflag2"];
let Conditionals = vec!["-utestflag3"];
let args = parse(Conditionals, Unconditionals).expect("Arguments not properly formatted"); //Will return an error if unconditional arguments not given or input arguments not properly formatted.
let conds = args.0; // hashmap of conditionals as keys and data as values
let unconds = args.1; // same for unconditionals
Dependencies
~0–9.5MB
~43K SLoC