diff options
author | Balasankar "Balu" C <balasankar@gitlab.com> | 2019-02-22 17:18:14 +0300 |
---|---|---|
committer | Balasankar "Balu" C <balasankar@gitlab.com> | 2019-02-25 16:20:43 +0300 |
commit | a1c5169c2d39033c6adf2146733709d34802f0c1 (patch) | |
tree | 8e077cf6072eb4c2da0237b67dab9a6ace21519d | |
parent | d013510e6c6028c6a3bb0bfe9adc6e2a88050ff8 (diff) |
Print output of -version flag to STDOUT
-rw-r--r-- | main.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -349,7 +349,7 @@ func createAdminHTTPSListener(config *appConfig) []io.Closer { func printVersion(showVersion bool, version string) { if showVersion { - fmt.Fprintf(os.Stderr, "%s\n", version) + fmt.Fprintf(os.Stdout, "%s\n", version) os.Exit(0) } } |