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:
@@ -116,7 +116,7 @@ Examples:
|
||||
{{ .Example }}
|
||||
|
||||
{{- end}}
|
||||
{{- if .HasFlags}}
|
||||
{{- if .HasAvailableFlags}}
|
||||
|
||||
Options:
|
||||
{{ wrappedFlagUsages . | trimRightSpace}}
|
||||
|
||||
Reference in New Issue
Block a user