Structs
The abstract representation of a command line argument. Used to set all the options and
relationships that define a valid argument for the program.
Implementation for
ValueParser::boolParse bool-like string values, everything else is
trueParse an
ValueEnum value.Parse false-like string values, everything else is
trueParse non-empty string values
Implementation for
ValueParser::os_stringImplementation for
ValueParser::path_bufA possible value of an argument.
Verify the value is from an enumerated set of
PossibleValue.Parse number that fall within a range of values
Parse number that fall within a range of values
Implementation for
ValueParser::stringParse/validate argument values
Enums
Application level settings, which affect how
Command operatesBehavior of arguments when they are encountered while parsing
Various settings that apply to arguments and may be set, unset, and checked via getter/setter
methods
Arg::setting, Arg::unset_setting, and Arg::is_set. This is what the
Arg methods which accept a bool use internally.Provide shell with hint on how to complete an argument.
Traits
Parse/validate argument values
Register a type with value_parser!
Type Definitions
Build a command-line interface.