Crates.io | arg_pars |
lib.rs | arg_pars |
version | 0.1.3 |
source | src |
created_at | 2023-09-07 15:07:34.550569 |
updated_at | 2023-09-08 09:55:40.334914 |
description | A short module for parse input arguments |
homepage | |
repository | |
max_upload_size | |
id | 966312 |
size | 4,566 |
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