Crate macro_clap

Source
Expand description

To use this crate, write use macro_clap::*; in your own crate

You can also use

use macro_clap::prelude::*;
use macro_clap::cli_macro::*;
use macro_clap::opt_types::*;

which is equivalent

Modules§

cli_macro
All necessary macros
opt_types
Option types
prelude
Error types and traits

Macros§

arg
The simple argument
branch
The intersection that separates two branches of arguments
cli
The main command-line argument parsing macro
collect
The collecter of all leftovers
impl_type
Underlying macro to implement types. Not for use in code
maybe
The argument that may be missing
opt
The matcher of options
usage
Underlying macro to make usage strings. Not for use in code

Structs§

Counter
How much all of the values of the option add up to
Flag
Whether an option is mentionned or not
FlagCounter
How many times an option is mentionned
GrabAll
All values given to the option
GrabFirst
The first value given to the option
GrabLast
The last value given to the option

Enums§

ArgParsingError

Traits§

OptionReceptacle
TryParse