Unified handling of printing versions of programs (--version). Setting version to 0.5

This commit is contained in:
Sascha L. Teichmann
2015-07-26 22:04:16 +02:00
parent f6b5f9ce97
commit 62a53dc26b
6 changed files with 44 additions and 3 deletions

View File

@ -13,11 +13,12 @@ import (
"os/signal"
"runtime"
"time"
"bitbucket.org/s_l_teichmann/mtsatellite/common"
)
const (
defaultMaxBulkStringSize = 32 * 1024 * 1024
Version = "0.3"
GCDuration = "24h"
ChangeDuration = "30s"
)
@ -63,8 +64,7 @@ func main() {
flag.Parse()
if version {
fmt.Printf("Version: %s\n", Version)
os.Exit(0)
common.PrintVersionAndExit()
}
if flag.NArg() < 1 {