Merge pull request #889 from crosbymichael/hidden-man

Don't output hidden commands for  man pages
This commit is contained in:
Audrius Butkevicius
2019-09-10 21:28:35 +01:00
committed by GitHub

View File

@@ -57,6 +57,9 @@ func prepareCommands(commands []Command, level int) []string {
coms := []string{}
for i := range commands {
command := &commands[i]
if command.Hidden {
continue
}
usage := ""
if command.Usage != "" {
usage = command.Usage