- description
- about
- command
Clap Show the description of the crates using the about command
examples/clap/show-description/Cargo.toml
[package] name = "show-description" version = "0.1.0" edition = "2021" description = "This is the description field of Cargo.toml" [dependencies] clap = { version = "4.5.7", features = ["derive"] }
examples/clap/show-description/src/main.rs
use clap::Parser; #[derive(Parser)] #[command(about)] struct Cli {} fn main() { let _args = Cli::parse(); println!("Use the --help to see the description"); }