@@ -29,6 +29,7 @@ import (
29
29
"vitess.io/vitess/go/vt/sqlparser"
30
30
"vitess.io/vitess/go/vt/topo"
31
31
"vitess.io/vitess/go/vt/topo/helpers"
32
+ "vitess.io/vitess/go/vt/utils"
32
33
)
33
34
34
35
var (
@@ -60,12 +61,12 @@ It can also be used to compare data between two topologies.`,
60
61
func init () {
61
62
servenv .MoveFlagsToCobraCommand (Main )
62
63
63
- Main .Flags (). StringVar ( & fromImplementation , "from_implementation " , fromImplementation , "topology implementation to copy data from" )
64
- Main .Flags (). StringVar ( & fromServerAddress , "from_server " , fromServerAddress , "topology server address to copy data from" )
65
- Main .Flags (). StringVar ( & fromRoot , "from_root " , fromRoot , "topology server root to copy data from" )
66
- Main .Flags (). StringVar ( & toImplementation , "to_implementation " , toImplementation , "topology implementation to copy data to" )
67
- Main .Flags (). StringVar ( & toServerAddress , "to_server " , toServerAddress , "topology server address to copy data to" )
68
- Main .Flags (). StringVar ( & toRoot , "to_root " , toRoot , "topology server root to copy data to" )
64
+ utils . SetFlagStringVar ( Main .Flags (), & fromImplementation , "from-implementation " , fromImplementation , "topology implementation to copy data from" )
65
+ utils . SetFlagStringVar ( Main .Flags (), & fromServerAddress , "from-server " , fromServerAddress , "topology server address to copy data from" )
66
+ utils . SetFlagStringVar ( Main .Flags (), & fromRoot , "from-root " , fromRoot , "topology server root to copy data from" )
67
+ utils . SetFlagStringVar ( Main .Flags (), & toImplementation , "to-implementation " , toImplementation , "topology implementation to copy data to" )
68
+ utils . SetFlagStringVar ( Main .Flags (), & toServerAddress , "to-server " , toServerAddress , "topology server address to copy data to" )
69
+ utils . SetFlagStringVar ( Main .Flags (), & toRoot , "to-root " , toRoot , "topology server root to copy data to" )
69
70
Main .Flags ().BoolVar (& compare , "compare" , compare , "compares data between topologies" )
70
71
Main .Flags ().BoolVar (& doKeyspaces , "do-keyspaces" , doKeyspaces , "copies the keyspace information" )
71
72
Main .Flags ().BoolVar (& doShards , "do-shards" , doShards , "copies the shard information" )
0 commit comments