Skip to content

Commit edeeca3

Browse files
committed
🐛 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`.
1 parent 7930391 commit edeeca3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cli/src/command/stdio.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -622,7 +622,7 @@ pub(crate) struct StdioCommand {
622622
help = "Filenames or patterns are separated by null characters, not by newlines"
623623
)]
624624
null: bool,
625-
#[arg(short, help = "Verbose")]
625+
#[arg(id = "stdio_verbose", short = 'v', help = "Verbose")]
626626
verbose: bool,
627627
#[arg(short = 'B', long, hide = true)]
628628
read_full_blocks: bool,

0 commit comments

Comments
 (0)