tools/migrate-7: die if conflicting options

This commit is contained in:
Sam Dodrill 2015-02-21 15:29:57 -08:00
parent 23c50b1903
commit 78f7194d41
1 changed files with 9 additions and 0 deletions

View File

@ -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)
}
}