feat: Exclude undocumented commands

This commit is contained in:
Ginger committed 2026-01-12 10:51:17 -05:00
1 parent 00eeeb78de
commit ae28fe92d2
7 files changed
+14 -220

No files matched your search

@@ -54,15 +54,17 @@ fn flatten_subcommands(command: &Command) -> Vec<Subcommand> {
let description = command
.get_long_about()
.or_else(|| command.get_about())
.map_or_else(|| "_(no description)_".to_owned(), ToString::to_string);
.map(ToString::to_string);
subcommands.push(
Subcommand {
name,
description,
depth,
}
);
if let Some(description) = description {
subcommands.push(
Subcommand {
name,
description,
depth,
}
);
}
}
for command in command.get_subcommands() {