mitchellh / cli

A Go library for implementing command-line interfaces.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Top level help shows all subcommand children

dadgar opened this issue · comments

See the fs commands in the attached picture This is a regression in behavior.

help

I looked into this before and the bug exists in Nomad here: https://github.com/hashicorp/nomad/blob/master/main.go#L32

You need to also exclude the subcommands.

Thanks. The behavior of the library did change so I thought it might be a bug. I wonder if hiding should be an option for the library to do automatically