| Crates.io | simple--args |
| lib.rs | simple--args |
| version | 1.1.1 |
| created_at | 2022-09-16 18:00:45.585438+00 |
| updated_at | 2022-09-16 18:16:53.012284+00 |
| description | A small library for parsing arguments in Rust |
| homepage | https://github.com/bennett-sh/simple-args |
| repository | https://github.com/bennett-sh/simple-args |
| max_upload_size | |
| id | 667554 |
| size | 4,090 |
A small library for parsing arguments in Rust
simpleargs::SimpleArgs
fn new(args: Vec<String>) -> SimpleArgs
Creates a new instance using the provided arguments.
fn parse(&self) -> (Vec<String>, Vec<String>, HashMap<String, String>)
Parses the arguments. Returns a tuple with:
./myprogram test)-y -myflag /anotherflag)--my-message "Hello world!")Prefixes like "-", "/" or "--" are not included in the output.
cargo build --lib --example [name of example]
./target/debug/examples/[name of example](.exe)