Crate clap_builder
clap_builder
Builder implementation for clap.
License
Licensed under either of
- Apache License, Version 2.0 (LICENSE-APACHE or https://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or https://opensource.org/licenses/MIT)
at your option.
Contribution
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.
See CONTRIBUTING for more details.
Modules
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][crate::Arg] or [ArgGroup][crate::ArgGroup] identifier
Enums
- ArgAction Behavior of arguments when they are encountered while parsing
- ColorChoice Represents the color preferences for program output
- ValueHint Provide shell with hint on how to complete an argument.
Traits
- Args Parse a set of arguments into a user-defined container.
-
CommandFactory
Create a
Commandrelevant for a user-defined container. -
FromArgMatches
Converts an instance of
ArgMatchesto a user-defined container. -
Parser
Parse command-line arguments into
Self. - Subcommand Parse a sub-command into a user-defined enum.
- ValueEnum Parse arguments into enums.
Type Aliases
- Error Command Line Argument Parser Error
Macros
-
arg
Create an
Argfrom a usage string. -
command
Requires
cargofeature flag to be enabled. -
value_parser
Select a
ValueParserimplementation from the intended type