diff options
author | Thanmay Nath <[email protected]> | 2023-10-16 21:28:32 +0530 |
---|---|---|
committer | GitHub <[email protected]> | 2023-10-16 09:58:32 -0600 |
commit | 24b0ecc310d71290ee004f7eaf364dce515eaff9 (patch) | |
tree | 4c805c808300c743a3045da79614126065217503 /cmd | |
parent | 7c82e265da8f90c1a1fee52c57af94587276ac56 (diff) | |
download | caddy-24b0ecc310d71290ee004f7eaf364dce515eaff9.tar.gz caddy-24b0ecc310d71290ee004f7eaf364dce515eaff9.zip |
cmd: Add newline character to version string in CLI output (#5895)
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/cobra.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/cobra.go b/cmd/cobra.go index c071f4a18..d43b43729 100644 --- a/cmd/cobra.go +++ b/cmd/cobra.go @@ -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") } |