Show aliases beneath empty command groups

This commit is contained in:
2026-10-20 00:26:07 +00:00
parent c231a41665
commit 744b8135f2
3 changed files with 32 additions and 2 deletions

View File

@@ -64,7 +64,7 @@ func routeHelpAliases(snapshot *routingSnapshot, route routeResult) []commandmet
return append([]commandmeta.CommandAlias(nil), snapshot.commandAliases...)
}
node := traceCanonicalPath(snapshot.canonical, route.canonicalPath).exact
if node == nil || len(node.children) == 0 {
if node == nil {
return nil
}