Skip to content

Commit 32951b3

Browse files
committed
fix: Drive-by fix for trailing whitespace for flags
Introduced in c768137.
1 parent c9d73d4 commit 32951b3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cli/root.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -367,12 +367,12 @@ func usageTemplate() string {
367367
368368
{{- if .HasAvailableLocalFlags}}
369369
{{usageHeader "Flags:"}}
370-
{{.LocalFlags.FlagUsagesWrapped 100}}
370+
{{.LocalFlags.FlagUsagesWrapped 100 | trimTrailingWhitespaces}}
371371
{{end}}
372372
373373
{{- if .HasAvailableInheritedFlags}}
374374
{{usageHeader "Global Flags:"}}
375-
{{.InheritedFlags.FlagUsagesWrapped 100}}
375+
{{.InheritedFlags.FlagUsagesWrapped 100 | trimTrailingWhitespaces}}
376376
{{end}}
377377
378378
{{- if .HasHelpSubCommands}}

0 commit comments

Comments
 (0)