Crate clap_builder
source ·Expand description
§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.
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§
- Error reporting
Commandline argument parser
Macros§
- Create an
Argfrom a usage string. - command
cargoAllows you to build theCommandinstance from your Cargo.toml at compile time. - crate_authors
cargoAllows 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_description
cargoAllows you to pull the description from your Cargo.toml at compile time. - crate_name
cargoAllows you to pull the name from your Cargo.toml at compile time. - crate_version
cargoAllows you to pull the version from your Cargo.toml at compile time asMAJOR.MINOR.PATCH_PKGVERSION_PRE - Select a
ValueParserimplementation from the intended type
Structs§
Enums§
- Represents the color preferences for program output
Traits§
- Parse a set of arguments into a user-defined container.
- Create a
Commandrelevant for a user-defined container. - Converts an instance of
ArgMatchesto a user-defined container. - Parse command-line arguments into
Self. - Parse a sub-command into a user-defined enum.
- Parse arguments into enums.
Type Aliases§
- Command Line Argument Parser Error