Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Clap Show the description of the crates using the about command

  • description
  • about
  • command
[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"] }
use clap::Parser;

#[derive(Parser)]
#[command(about)]
struct Cli {}

fn main() {
    let _args = Cli::parse();
    println!("Use the --help to see the description");
}