rags-rs

Crates.iorags-rs
lib.rsrags-rs
version0.1.4
sourcesrc
created_at2019-08-23 08:17:28.055421
updated_at2019-09-11 23:33:41.748268
descriptionrags is an easy to use argument parsing library that provides pretty help-printing.
homepage
repositoryhttps://github.com/zmarcantel/rags
max_upload_size
id159139
size133,800
Zach Marcantel (zmarcantel)

documentation

README

rags

docs.rs/rags-rs Build Status

rags is an easy to use argument parsing library for Rust that provides pretty help-printing.

For consistency, this README is kept lean. See the documentation for up-to-date documentation. You may also look at the examples contained in this repo.

rags allows defining arguments in the same tree-like manner that users and developers expect. This leads to efficient parsing as we can efficiently eliminate work based on the state of the parsing. Once an argument has been matched it will never be inspected again.

usage

This crate is available from crates.io:

# Cargo.toml
[dependencies]
rags-rs = "^0.1.3"

Your application then can create a parser, define your args, and keep on going:

extern crate rags_rs as rags;

fn main() {
    let mut parser = rags::Parser::from_args();
    ...
    ...
}
Commit count: 22

cargo fmt