| Crates.io | rs-args |
| lib.rs | rs-args |
| version | 0.3.1 |
| created_at | 2023-12-28 21:50:16.266+00 |
| updated_at | 2023-12-30 11:26:19.100363+00 |
| description | A simple command line argument parser for Rust |
| homepage | |
| repository | https://gihub.com/mt4f/rs-args |
| max_upload_size | |
| id | 1082703 |
| size | 23,819 |
A simple, easy to use command argument parser for Rust.
cargo init
rs-args as a dependencyrs-args = "<latest version>"
Now that you installed rs-args in your cargo project, you have
access to the rs_args module. This allows you to automatically parse arguments.
You can call
let args = rs_args::parse_arguments();
to retrieve the program arguments and parse them automaticaly, or you can call
rs_args::get_named(...)
// or
rs_args::get_positional(...)
// etc.
to directly retrieve the argument values.