mirror of
https://bitbucket.org/s_l_teichmann/mtsatellite
synced 2025-07-14 05:50:28 +02:00
Unified handling of printing versions of programs (--version). Setting version to 0.5
This commit is contained in:
@ -98,6 +98,7 @@ func main() {
|
||||
dstBackend string
|
||||
srcInterleaved bool
|
||||
dstInterleaved bool
|
||||
version bool
|
||||
)
|
||||
|
||||
flag.Usage = usage
|
||||
@ -118,9 +119,14 @@ func main() {
|
||||
"Should dest database be interleaved?")
|
||||
flag.BoolVar(&dstInterleaved, "di", true,
|
||||
"Should source database be interleaved? Shorthand")
|
||||
flag.BoolVar(&version, "version", false, "Print version and exit.")
|
||||
|
||||
flag.Parse()
|
||||
|
||||
if version {
|
||||
common.PrintVersionAndExit()
|
||||
}
|
||||
|
||||
if flag.NArg() < 2 {
|
||||
log.Fatal("Missing source and/or destination database.")
|
||||
}
|
||||
|
Reference in New Issue
Block a user