Crates.io | rust_argp |
lib.rs | rust_argp |
version | 0.0.2 |
source | src |
created_at | 2023-11-15 06:30:00.598498 |
updated_at | 2024-03-03 08:16:26.89924 |
description | Arguments-likes strings parser |
homepage | |
repository | https://github.com/startracex/rust-argp |
max_upload_size | |
id | 1036193 |
size | 9,771 |
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, &["...", "..."]);