cmdargs

Command line argument parser for Rust.

Crates.io Crates.io Rust Documentation License Contributors

NOTE: this library is under development and "not production ready".

Usage

Add the following to your Cargo.toml:

toml [dependencies] cmdargs = "0.1.1"

Example:

```rust use cmdargs;

fn main() { let parser = cmdargs::parserfromstr! {" Usage: hello-world [options]

    Options:
      -a, --all        Print Hello World
      -H, --hello      Print Hello
      -W, --world      Print World

      -h, --help       Print help information
      -V, --version    Print version information
"};
parser.parse();

println!("Hello World!");

} ```