arg_pars

Crates.ioarg_pars
lib.rsarg_pars
version0.1.3
sourcesrc
created_at2023-09-07 15:07:34.550569
updated_at2023-09-08 09:55:40.334914
descriptionA short module for parse input arguments
homepage
repository
max_upload_size
id966312
size4,566
(ajlstep)

documentation

README

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

cargo fmt