diff --git a/Cargo.toml b/Cargo.toml index c3bd283..8461622 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -13,6 +13,7 @@ repository = "https://github.com/dtolnay/cargo-docs-rs" anyhow = "1.0.79" cargo-subcommand-metadata = "0.1" clap = { version = "4", features = ["deprecated", "derive"] } +clap-cargo = "0.14.1" serde = "1.0.194" serde_derive = "1.0.194" serde_json = "1.0.110" diff --git a/src/parser.rs b/src/parser.rs index ae9810b..c38362b 100644 --- a/src/parser.rs +++ b/src/parser.rs @@ -6,7 +6,11 @@ const COMPILATION_OPTIONS: &str = "Compilation Options"; const MANIFEST_OPTIONS: &str = "Manifest Options"; #[derive(Parser)] -#[command(bin_name = "cargo", version, author, disable_help_subcommand = true)] +#[command( + bin_name = "cargo", + version, author, + disable_help_subcommand = true, + styles = clap_cargo::style::CLAP_STYLING)] pub enum Subcommand { /// Imitate the documentation build that docs.rs would do #[command(name = "docs-rs", version, author, disable_version_flag = true)]