3 releases
0.0.2 | Mar 3, 2024 |
---|---|
0.0.1 | Nov 15, 2023 |
0.0.0 | Nov 15, 2023 |
#2624 in Command line utilities
9KB
145 lines
rust_argp
Arguments-likes strings parser
From arguments
let mut ap = rust_argp::new();
From Vec<String>
let origin :Vec<String> =...;
let mut ap = rust_argp::from(origin);
Query boolean
let exist = ap.bool(&["...","..."]);
let mut exist = false;
ap.bool_var(&mut exist, &["...","..."]);
Query string
let (value, exist) = ap.string(&["...", "..."]);
let mut value = String::new();
ap.string_var(&mut value, &["...", "..."]);
lib.rs
:
rust_argp
parse arguments strings or similar strings