From 01ba69c91047388c3d374de8332e9da5ca8ee4f7 Mon Sep 17 00:00:00 2001 From: ChanTsune <41658782+ChanTsune@users.noreply.github.com> Date: Sun, 22 Feb 2026 01:39:01 +0000 Subject: [PATCH] :bug: Fix stdio -v flag leaking debug logs via clap arg ID collision Stdio's `verbose` field shared the arg ID "verbose" with the global `VerbosityArgs::verbose`, causing clap to merge them when the global arg propagated to the subcommand level. This made `-v` at the stdio level set the global verbose flag to true, overriding `--log-level`. --- cli/src/command/stdio.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/src/command/stdio.rs b/cli/src/command/stdio.rs index d4c70665a..186f203b9 100644 --- a/cli/src/command/stdio.rs +++ b/cli/src/command/stdio.rs @@ -622,7 +622,7 @@ pub(crate) struct StdioCommand { help = "Filenames or patterns are separated by null characters, not by newlines" )] null: bool, - #[arg(short, help = "Verbose")] + #[arg(id = "stdio_verbose", short = 'v', help = "Verbose")] verbose: bool, #[arg(short = 'B', long, hide = true)] read_full_blocks: bool,