mirror of
https://bitbucket.org/s_l_teichmann/mtsatellite
synced 2025-07-03 00:20:48 +02:00
Unified handling of printing versions of programs (--version). Setting version to 0.5
This commit is contained in:
@ -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 {
|
||||
|
Reference in New Issue
Block a user