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 Oct 16, 2023
1 parent 7c82e26 commit 24b0ecc
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 24b0ecc

Please sign in to comment.