From a0f715a5a334272842f1090331e4017daf79b832 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABtan=20Lehmann?= Date: Sat, 3 Feb 2024 19:47:51 +0100 Subject: [PATCH] we only need clap-markdown at build time --- Cargo.toml | 1 - doc/CommandLineHelp.md | 4 ---- src/cli.rs | 3 --- src/main.rs | 5 ----- 4 files changed, 13 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 5e58811..9c04192 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -18,7 +18,6 @@ keywords = ["secret", "yaml", "encryption", "cli", "age"] age = "0.9.2" base64 = "0.21.7" clap = { version = "4.4.18", features = ["derive", "env", "wrap_help"] } -clap-markdown = "0.1.3" clap-verbosity-flag = "2.1.2" clap_complete = "4.4.10" log = "0.4.20" diff --git a/doc/CommandLineHelp.md b/doc/CommandLineHelp.md index d61ca15..23c07ff 100644 --- a/doc/CommandLineHelp.md +++ b/doc/CommandLineHelp.md @@ -35,10 +35,6 @@ A simple tool to manage encrypted secrets in YAML files with age encryption * `-v`, `--verbose` — Increase logging verbosity * `-q`, `--quiet` — Decrease logging verbosity -* `--markdown-help` - - Possible values: `true`, `false` - diff --git a/src/cli.rs b/src/cli.rs index 11e69b9..92e218f 100644 --- a/src/cli.rs +++ b/src/cli.rs @@ -16,9 +16,6 @@ pub struct Cli { #[command(subcommand)] pub command: Commands, - - #[arg(long, hide = true)] - pub markdown_help: bool, } #[derive(Subcommand, Debug)] diff --git a/src/main.rs b/src/main.rs index a3a0d39..6f02f6b 100644 --- a/src/main.rs +++ b/src/main.rs @@ -26,11 +26,6 @@ fn run() -> error::Result<()> { return Ok(()); } - if cli.markdown_help { - clap_markdown::print_help_markdown::(); - return Ok(()); - } - match cli.command { cli::Commands::Keygen(ref args) => keygen::keygen(args)?, cli::Commands::Pubkey(ref args) => pubkey::pubkey(args)?,