Use HasAvailableFlags instead of HasFlags for Options in help

> HasAvailableFlags checks if the command contains any flags (local
> plus persistent from the entire structure) which are not hidden or
> deprecated.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn 2018-05-19 03:10:23 +02:00
parent ed75c7727b
commit 9411856536
No known key found for this signature in database
GPG key ID: 76698F39D527CE8C

View file

@ -116,7 +116,7 @@ Examples:
{{ .Example }}
{{- end}}
{{- if .HasFlags}}
{{- if .HasAvailableFlags}}
Options:
{{ wrappedFlagUsages . | trimRightSpace}}