Expand description
This module defines and contains all the important argument parsing functionality. The requisite types and functions are re-exported at the top-level of the crate.
Structs§
- ArgParse
Results - This type represents the result ofparsing arguments.
- ArgParser
- This type represents the state and methods for parsing arguments. A new parser must be created for every set of arguments you want to parse.
Enums§
- ArgType
- This enum represents the different types of arguments supported
Traits§
- ArgGetter
- Represents something capable of turning a
&str
in the value type of your choice. Implement this to use withArgParseResults::get_with
Functions§
- hashmap_
parser - Function that parses
Dict
arguments intoHashMap
s. Provided for user convenience and use as an implementor ofArgGetter
. - vec_
parser - Function that parses
List
arguments intoVec
s. Provided for user convenience and use as an implementor ofArgGetter
.
Type Aliases§
- Parse
Result - Simple type alias to reduce typing. The return type of
ArgParser::parse
.