Skip to content

Commit

Permalink
we only need clap-markdown at build time
Browse files Browse the repository at this point in the history
  • Loading branch information
glehmann committed Feb 3, 2024
1 parent 723c5f3 commit a0f715a
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 13 deletions.
1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 0 additions & 4 deletions doc/CommandLineHelp.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`




Expand Down
3 changes: 0 additions & 3 deletions src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@ pub struct Cli {

#[command(subcommand)]
pub command: Commands,

#[arg(long, hide = true)]
pub markdown_help: bool,
}

#[derive(Subcommand, Debug)]
Expand Down
5 changes: 0 additions & 5 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,6 @@ fn run() -> error::Result<()> {
return Ok(());
}

if cli.markdown_help {
clap_markdown::print_help_markdown::<cli::Cli>();
return Ok(());
}

match cli.command {
cli::Commands::Keygen(ref args) => keygen::keygen(args)?,
cli::Commands::Pubkey(ref args) => pubkey::pubkey(args)?,
Expand Down

0 comments on commit a0f715a

Please sign in to comment.