From 413497b1a28e4f3438a60db2672ec50831fef8c8 Mon Sep 17 00:00:00 2001 From: Richard Mitchell <richard.j.mitchell@gmail.com> Date: Sun, 5 Aug 2018 09:30:29 +0100 Subject: [PATCH] Fix output from version flag to be stdout --- main.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.go b/main.go index bce0bd0..014d333 100644 --- a/main.go +++ b/main.go @@ -1,6 +1,7 @@ package main import ( + "fmt" "io/ioutil" "log" "net/http" @@ -69,7 +70,7 @@ func runServer() { func main() { command := kingpin.MustParse(app.Parse(os.Args[1:])) if *version { - println(VERSION) + fmt.Printf("%s\n", VERSION) } else { switch command { case run.FullCommand(): -- GitLab