Correctly hide sub-commands.

This commit is contained in:
Alec Thomas
2019-07-08 14:11:08 +10:00
parent 33b8d2b19c
commit 0548c6b1af
+1 -1
View File
@@ -94,7 +94,7 @@ func printCommand(w *helpWriter, app *Application, cmd *Command) {
if !w.NoAppSummary {
w.Printf("Usage: %s %s", app.Name, cmd.Summary())
}
printNodeDetail(w, cmd, false)
printNodeDetail(w, cmd, true)
if w.Summary && app.HelpFlag != nil {
w.Print("")
w.Printf(`Run "%s --help" for more information.`, cmd.FullPath())