Skip to content

Commit

Permalink
Merge pull request #889 from crosbymichael/hidden-man
Browse files Browse the repository at this point in the history
Don't output hidden commands for  man pages
  • Loading branch information
AudriusButkevicius committed Sep 10, 2019
2 parents 249cb33 + 487be14 commit b207e20
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b207e20

Please sign in to comment.