| Crates.io | clap-doc |
| lib.rs | clap-doc |
| version | 0.1.1 |
| created_at | 2024-09-17 13:06:33.141244+00 |
| updated_at | 2024-12-10 16:18:15.547841+00 |
| description | Create markdown descriptions for `clap::Command`s |
| homepage | https://crates.io/crates/clap-doc/ |
| repository | https://github.com/aatifsyed/clap-doc/ |
| max_upload_size | |
| id | 1377416 |
| size | 8,409 |
clap-docCreate markdown descriptions for [clap::Command]s.
So given the following rust code:
/// Rust's package manager
#[derive(clap::Parser)]
#[command(name = "cargo")]
enum Cargo {
/// Compile a local package and all of its dependencies
Build {
/// Build artifacts in release mode, with optimizations
#[arg(short, long)]
release: bool,
},
/// Run a binary or example of the local package
Run {
/// Arguments for the binary or example to run
args: Vec<String>,
},
/// Remove artifacts that cargo has generated in the past
Clean,
}
cargoRust's package manager
Usage: cargo <COMMAND>
Commands:
build Compile a local package and all of its dependencies
run Run a binary or example of the local package
clean Remove artifacts that cargo has generated in the past
cargo buildCompile a local package and all of its dependencies
Usage: cargo build [OPTIONS]
Options:
-r, --release
Build artifacts in release mode, with optimizations
cargo runRun a binary or example of the local package
Usage: cargo run [ARGS]...
Arguments:
[ARGS]...
Arguments for the binary or example to run
cargo cleanRemove artifacts that cargo has generated in the past
Usage: cargo clean