Re-exports§
pub use clap_complete;
pub use clap;
Modules§
- builder
- Define
Command
line arguments - clap_
derive clap_derive
- error
- Error reporting
- parser
Command
line argument parser
Macros§
- arg
- Create an
Arg
from a usage string. - command
- Requires
cargo
feature flag to be enabled. - value_
parser - Select a
ValueParser
implementation from the intended type
Structs§
- Arg
- The abstract representation of a command line argument. Used to set all the options and relationships that define a valid argument for the program.
- ArgGroup
- Family of related arguments.
- ArgMatches
- Container for parse results.
- Command
- Build a command-line interface.
- Id
Arg
orArgGroup
identifier
Enums§
- ArgAction
- Behavior of arguments when they are encountered while parsing
- Color
Choice - Represents the color preferences for program output
- Value
Hint - Provide shell with hint on how to complete an argument.
Traits§
- Args
- Parse a set of arguments into a user-defined container.
- Command
Factory - Create a
Command
relevant for a user-defined container. - From
ArgMatches - Converts an instance of
ArgMatches
to a user-defined container. - Parser
- Parse command-line arguments into
Self
. - Subcommand
- Parse a sub-command into a user-defined enum.
- Value
Enum - Parse arguments into enums.
Type Aliases§
- Error
- Command Line Argument Parser Error
Attribute Macros§
Derive Macros§
- Args
- Generates the
Args
impl. - Parser
- Generates the
Parser
implementation. - Subcommand
- Generates the
Subcommand
impl. - Value
Enum - Generates the
ValueEnum
impl.