tools/migrate-7: die if conflicting options
This commit is contained in:
parent
23c50b1903
commit
78f7194d41
|
@ -10,6 +10,8 @@ package main
|
|||
|
||||
import (
|
||||
"flag"
|
||||
"fmt"
|
||||
"os"
|
||||
)
|
||||
|
||||
var (
|
||||
|
@ -28,4 +30,11 @@ var (
|
|||
|
||||
func main() {
|
||||
flag.Parse()
|
||||
|
||||
if *saveDataAction && *replayDataAction {
|
||||
fmt.Println("Cannot choose both saving and replaying at the same time.\n")
|
||||
|
||||
flag.Usage()
|
||||
os.Exit(2)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue