Skip to content

Commit

Permalink
cmd: Add newline character to version string in CLI output (#5895)
Browse files Browse the repository at this point in the history
  • Loading branch information
ThanmayNath authored and mholt committed Dec 7, 2023
1 parent 15adb89 commit 11a082c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/cobra.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ const fullDocsFooter = `Full documentation is available at:
https://caddyserver.com/docs/command-line`

func init() {
rootCmd.SetVersionTemplate("{{.Version}}")
rootCmd.SetVersionTemplate("{{.Version}}\n")
rootCmd.SetHelpTemplate(rootCmd.HelpTemplate() + "\n" + fullDocsFooter + "\n")
}

Expand Down

0 comments on commit 11a082c

Please sign in to comment.