4 releases
0.1.3 | Sep 8, 2023 |
---|---|
0.1.2 | Sep 7, 2023 |
0.1.1 | Sep 7, 2023 |
0.1.0 | Sep 7, 2023 |
#60 in #arg
5KB
64 lines
It parse input argument vector to vector of string truple
Example:
use arg_pars;
fn main() {
let arg_vec = arg_pars::parse(std::env::args().collect());
for arg in arg_vec {
println!("{}:{}", arg.0, arg.1);
}
}
input: ...> .\main.exe --b --c --s=45 -f=this is long name of file
output: main.exe:true
b:true
c:true
s:45
f:this_is_long_name_of_file