Jockey provides custom command-line parsers that practically write themselves.
This crate provides the Arguments trait which can be derived using #[derive(Arguments)]
. That
trait provides the parse_args
method which parses command-line arguments by env::args()
.
The following code is an example of a simple command-line parser.
extern crate jockey;
extern crate jockey_derive;
use Arguments;
use env;
A more sophisticated example using field attributes can be found in the Arguments documentation.