clp-lib

Crates.ioclp-lib
lib.rsclp-lib
version0.1.1
sourcesrc
created_at2022-02-17 19:26:07.711971
updated_at2022-02-17 19:29:38.759849
descriptionA single function to parse conditional and unconditional command line arguments of any type.
homepage
repository
max_upload_size
id534304
size3,925
(SamuelJosephs)

documentation

README

 #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 
Commit count: 0

cargo fmt