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