Skip to content

Commit 07def55

Browse files
committed
💥 Disable short help option(-h) in stdio subcommand
1 parent 01984e8 commit 07def55

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

cli/src/command/stdio.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ use pna::Archive;
2727
use std::{env, fs, io, path::PathBuf, sync::Arc, time::SystemTime};
2828

2929
#[derive(Args, Clone, Debug)]
30+
#[clap(disable_help_flag = true)]
3031
#[command(
3132
version,
3233
disable_version_flag = true,
@@ -376,6 +377,8 @@ pub(crate) struct StdioCommand {
376377
ignore_zeros: bool,
377378
#[arg(long, action = clap::ArgAction::Version, help = "Print version")]
378379
version: (),
380+
#[arg(long, action = clap::ArgAction::Help)]
381+
help: Option<bool>,
379382
}
380383

381384
impl Command for StdioCommand {

0 commit comments

Comments
 (0)