[][src]Crate argst

argst

argst is a simple one-macro library to hide some boilerplate when using StructOpt. See the actual args macro.

Example

use argst::args;
args!(
    /// The number of times to perform this operation
    #[structopt(long = "count")]
    n: usize,
    /// The path to the data file
    path: std::path::PathBuf,
);
println!("Running {} times over data at {}", n, path.display());

Macros

args

A macro to generate StructOpt boilerplate and bind arguments