arg_pars 0.1.3

A short module for parse input arguments
Documentation
  • Coverage
  • 0%
    0 out of 2 items documented0 out of 1 items with examples
  • Size
  • Source code size: 4.25 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.06 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • ajlstep

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