logo

Crate clap

source · []
Expand description

Re-exports

pub use crate::error::Error;
pub use crate::error::Result;

Modules

Error reporting

Macros

Create an Arg from a usage string.

Requires cargo feature flag to be enabled.

Structs

AppDeprecated

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.

Container for parse results.

Iterate over indices for where an argument appeared when parsing, via ArgMatches::indices_of

Iterate over multiple values for an argument via ArgMatches::values_of_os.

A possible value of an argument.

Iterate over multiple values for an argument via ArgMatches::values_of.

Enums

Application level settings, which affect how Command operates

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.

Represents the color preferences for program output

Command line argument parser kind of error

Provide shell with hint on how to complete an argument.

Origin of the argument’s value

Traits

Parse arguments into enums.

Parse a set of arguments into a user-defined container.

Create an Command relevant for a user-defined container.

Converts an instance of ArgMatches to a user-defined container.

Create an Command relevant for a user-defined container.

Parse command-line arguments into Self.

Parse a sub-command into a user-defined enum.

Type Definitions

Build a command-line interface.