Docs.rs
clap-4.5.21
clap 4.5.21
Permalink
Docs.rs crate page
MIT OR Apache-2.0
Links
Repository
crates.io
Source
Owners
kbknapp
github:clap-rs:admins
github:rust-cli:maintainers
Dependencies
clap_builder =4.5.21
normal
clap_derive =4.5.18
normal
optional
automod ^1.0.14
dev
clap-cargo ^0.14.1
dev
humantime ^2.1.0
dev
rustversion ^1.0.15
dev
shlex ^1.3.0
dev
snapbox ^0.6.16
dev
trybuild ^1.0.91
dev
trycmd ^0.15.3
dev
Versions
56.1%
of the crate is documented
Platform
i686-pc-windows-msvc
i686-unknown-linux-gnu
x86_64-apple-darwin
x86_64-pc-windows-msvc
x86_64-unknown-linux-gnu
Feature flags
Rust
About docs.rs
Privacy policy
Rust website
The Book
Standard Library API Reference
Rust by Example
The Cargo Guide
Clippy Documentation
clap
4.5.21
Module _tutorial
Sections
Documentation: Derive Tutorial
Module Items
Modules
In clap::
_
derive
clap
::
_derive
Module
_tutorial
Copy item path
Source
Available on
crate feature
unstable-doc
only.
Expand description
§
Documentation: Derive Tutorial
Quick Start
Configuring the Parser
Adding Arguments
Positionals
Options
Flags
Subcommands
Defaults
Validation
Enumerated values
Validated values
Argument Relations
Custom Validation
Testing
Next Steps
Modules
§
chapter_
0
Quick Start
chapter_
1
Configuring the Parser
chapter_
2
Adding Arguments
chapter_
3
Validation
chapter_
4
Testing
chapter_
5
Next Steps