Skip to content

Commit

Permalink
Merge pull request #959 from vdemeester/help-use-available-flags
Browse files Browse the repository at this point in the history
Use HasAvailableFlags instead of HasFlags for Options in help
  • Loading branch information
Vincent Demeester authored Mar 22, 2018
2 parents ad4fe14 + 66fdd08 commit a6d2354
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cli/cobra.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ Examples:
{{ .Example }}
{{- end}}
{{- if .HasFlags}}
{{- if .HasAvailableFlags}}
Options:
{{ wrappedFlagUsages . | trimRightSpace}}
Expand Down

0 comments on commit a6d2354

Please sign in to comment.