Module clap::builder

source ·
Expand description

Define Command line arguments

Structs

Deprecated, replaced with Command
The abstract representation of a command line argument. Used to set all the options and relationships that define a valid argument for the program.
Family of related arguments.
Parse bool-like string values, everything else is true
Parse an ValueEnum value.
Parse false-like string values, everything else is true
Parse non-empty string values
A 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
Parse/validate argument values

Enums

Application level settings, which affect how Command operates
Behavior 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.