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>
Upstream-commit: 9411856536ef49883fb3550fd1ee804ab99c4072
Component: engine
This commit is contained in:
Sebastiaan van Stijn
2018-05-19 03:10:23 +02:00
parent 863c9ae33b
commit f19625f9c4
+1 -1
View File
@@ -116,7 +116,7 @@ Examples:
{{ .Example }}
{{- end}}
{{- if .HasFlags}}
{{- if .HasAvailableFlags}}
Options:
{{ wrappedFlagUsages . | trimRightSpace}}