falgs are inherited, not global

This commit is contained in:
Lars Kajes 2023-10-11 14:44:08 +02:00
parent 5d16684e88
commit 44242f9e60
No known key found for this signature in database
GPG key ID: 545653E10DDEB65B
2 changed files with 2 additions and 2 deletions

View file

@ -568,7 +568,7 @@ Additional Commands:{{range $cmds}}{{if (and (eq .GroupID "") (or .IsAvailableCo
Flags:
{{.LocalFlags.FlagUsages | trimTrailingWhitespaces}}{{end}}{{if .HasAvailableInheritedFlags}}
Global Flags:
Flags inherited from parent commands:
{{.InheritedFlags.FlagUsages | trimTrailingWhitespaces}}{{end}}{{if .HasHelpSubCommands}}
Additional help topics:{{range .Commands}}{{if .IsAdditionalHelpTopicCommand}}

View file

@ -921,7 +921,7 @@ Flags:
--foo child foo usage
-h, --help help for child
Global Flags:
Flags inherited from parent commands:
--bar parent bar usage
`