Skip to content

Commit 190145c

Browse files
authored
Remove leading whitespaces from usage text (#16)
1 parent a2674b0 commit 190145c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cli/cobra.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,5 +329,6 @@ Run '{{.CommandPath}} COMMAND --help' for more information on a command.
329329
330330
{{- end}}
331331
`
332+
332333
const helpTemplate = `
333-
{{if or .Runnable .HasSubCommands}}{{.UsageString}}{{end}}`
334+
{{- if or .Runnable .HasSubCommands}}{{.UsageString}}{{end}}`

0 commit comments

Comments
 (0)