Cargo Features

clap = { version = "4.5.7", default-features = false, features = ["debug", "unstable-doc", "std", "color", "help", "usage", "error-context", "suggestions", "deprecated", "derive", "cargo", "wrap_help", "env", "unicode", "string", "unstable-v5", "unstable-styles"] }
default = color, error-context, help, std, suggestions, usage

These default features are set whenever clap is added without default-features = false somewhere in the dependency tree.


Enables debug messages

Enables debug of clap_builder and optional clap_derive

unstable-doc = derive


Enables unstable-doc of clap_builder

std default

Used in default
support for no_std in a backwards-compatible way

Enables std of clap_builder

color default

Enables color of clap_builder

help default

Enables help of clap_builder

usage default

Enables usage of clap_builder

error-context default

Enables error-context of clap_builder

suggestions default

Enables suggestions of clap_builder

deprecated unstable-v5?

Guided experience to prepare for next breaking release (at different stages of development, this may become default)

Enables deprecated of clap_builder and optional clap_derive

derive unstable-doc?

Enables clap_derive


Disable if you're not using Cargo, enables Cargo-env-var-dependent macros

Enables cargo of clap_builder


Enables wrap_help of clap_builder


Use environment variables during arg parsing

Enables env of clap_builder


Support for unicode characters in arguments and help messages

Enables unicode of clap_builder


Allow runtime generated strings

Enables string of clap_builder

unstable-v5 = deprecated

In-work features

Enables unstable-v5 of clap_builder and optional clap_derive


Enables unstable-styles of clap_builder