Crate arguments [−] [src]
Parser for command-line arguments.
Example
let args = std::env::args(); // foo --bar --baz 42 --qux 'To be?' let args = arguments::parse(args).unwrap(); println!("Foo: {}", args.program); println!("Bar: {}", args.get::<bool>("bar").unwrap()); println!("Baz: {}", args.get::<usize>("baz").unwrap()); println!("Qux: {}", args.get::<String>("qux").unwrap());
Structs
Arguments |
Command-line arguments. |
Error |
An error. |
Options |
A collection of named parameters. |
Parser |
A parser for command-line arguments. |
Functions
parse |
Parse command-line arguments. |
Type Definitions
Result |
A result. |