rs-args
Overview
A simple, easy to use command argument parser for Rust.
Installation
- Initialise a cargo project ( you can skip this if you already have one )
- Add
rs-argsas a dependency
= "<latest version>"
Usage
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 = parse_arguments;
to retrieve the program arguments and parse them automaticaly, or you can call
get_named
// or
get_positional
// etc.
to directly retrieve the argument values.