Skip to content

Commit 391874b

Browse files
committed
💥 Disable short help option(-h) in stdio subcommand
1 parent 56cbfdc commit 391874b

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
@@ -25,6 +25,7 @@ use pna::Archive;
2525
use std::{env, io, path::PathBuf, sync::Arc, time::SystemTime};
2626

2727
#[derive(Args, Clone, Debug)]
28+
#[clap(disable_help_flag = true)]
2829
#[command(
2930
group(ArgGroup::new("unstable-acl").args(["keep_acl"]).requires("unstable")),
3031
group(ArgGroup::new("unstable-include").args(["include"]).requires("unstable")),
@@ -264,6 +265,8 @@ pub(crate) struct StdioCommand {
264265
null: bool,
265266
#[arg(long, hide = true)]
266267
format: Option<String>,
268+
#[arg(long, action = clap::ArgAction::Help)]
269+
help: Option<bool>,
267270
}
268271

269272
impl Command for StdioCommand {

0 commit comments

Comments
 (0)