rust_argp

Crates.iorust_argp
lib.rsrust_argp
version0.0.2
sourcesrc
created_at2023-11-15 06:30:00.598498
updated_at2024-03-03 08:16:26.89924
descriptionArguments-likes strings parser
homepage
repositoryhttps://github.com/startracex/rust-argp
max_upload_size
id1036193
size9,771
akaShiro (startracex)

documentation

README

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, &["...", "..."]);
Commit count: 0

cargo fmt