Skip to content

Commit 81d661e

Browse files
committed
refactor(command): Improve subcommand
- use FlatSet for unique and ordered headings - filter subcommands for non-null help headings
1 parent 28f35c9 commit 81d661e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

clap_builder/src/builder/command.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4428,6 +4428,7 @@ impl Command {
44284428
}
44294429
}
44304430

4431+
#[allow(dead_code)] // overcome clippy minimal report that it is unused.
44314432
pub(crate) fn get_subcommand_custom_help_headings(&self) -> FlatSet<&str> {
44324433
self.get_subcommands()
44334434
.filter_map(|sc| sc.get_help_heading())

0 commit comments

Comments
 (0)