Skip to content

Commit

Permalink
fix(help): Don't show hidden arguments in groups
Browse files Browse the repository at this point in the history
  • Loading branch information
julian-klode committed Dec 23, 2024
1 parent cff27db commit 9225fd5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions clap_builder/src/builder/command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4827,6 +4827,7 @@ impl Command {
.unroll_args_in_group(g)
.iter()
.filter_map(|x| self.find(x))
.filter(|x| !x.is_hide_set())
.map(|x| {
if x.is_positional() {
// Print val_name for positional arguments. e.g. <file_name>
Expand Down

0 comments on commit 9225fd5

Please sign in to comment.