Crate clap_builder

Source
Expand description

§clap_builder

Builder implementation for clap.

docs.rs

§License

Licensed under either of

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.

Re-exports§

pub use crate::builder::ArgAction;
pub use crate::builder::Command;
pub use crate::builder::ValueHint;
pub use crate::builder::Arg;
pub use crate::builder::ArgGroup;
pub use crate::parser::ArgMatches;

Modules§

builder
Define Command line arguments
error
Error reporting
parser
Command line argument parser

Macros§

arg
Create an Arg from a usage string.
commandcargo
Allows you to build the Command instance from your Cargo.toml at compile time.
crate_authorscargo
Allows you to pull the authors for the command from your Cargo.toml at compile time in the form: "author1 lastname <author1@example.com>:author2 lastname <author2@example.com>"
crate_descriptioncargo
Allows you to pull the description from your Cargo.toml at compile time.
crate_namecargo
Allows you to pull the name from your Cargo.toml at compile time.
crate_versioncargo
Allows you to pull the version from your Cargo.toml at compile time as MAJOR.MINOR.PATCH_PKGVERSION_PRE
value_parser
Select a ValueParser implementation from the intended type

Structs§

Id
Arg or ArgGroup identifier

Enums§

ColorChoice
Represents the color preferences for program output

Traits§

Args
Parse a set of arguments into a user-defined container.
CommandFactory
Create a Command relevant for a user-defined container.
FromArgMatches
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.
ValueEnum
Parse arguments into enums.

Type Aliases§

Error
Command Line Argument Parser Error