Skip to content

Commit 24b0ecc

Browse files
authored
cmd: Add newline character to version string in CLI output (#5895)
1 parent 7c82e26 commit 24b0ecc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/cobra.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ const fullDocsFooter = `Full documentation is available at:
106106
https://caddyserver.com/docs/command-line`
107107

108108
func init() {
109-
rootCmd.SetVersionTemplate("{{.Version}}")
109+
rootCmd.SetVersionTemplate("{{.Version}}\n")
110110
rootCmd.SetHelpTemplate(rootCmd.HelpTemplate() + "\n" + fullDocsFooter + "\n")
111111
}
112112

0 commit comments

Comments
 (0)