Don't output hidden commands for man pages

Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
This commit is contained in:
Michael Crosby 2019-09-10 13:49:11 -04:00
parent 249cb33392
commit 487be14dce

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