Skip to content

Switch flag definitions to be on pflag instead of flag in package go/cmd/topo2topo #11277

Closed
@ajm188

Description

@ajm188

Part of #10697.

Current flags:

$ git grep -E "\bflag\.[A-Z]" -- go/cmd/topo2topo/*.go
go/cmd/topo2topo/topo2topo.go:  fromImplementation = flag.String("from_implementation", "", "topology implementation to copy data from")
go/cmd/topo2topo/topo2topo.go:  fromServerAddress  = flag.String("from_server", "", "topology server address to copy data from")
go/cmd/topo2topo/topo2topo.go:  fromRoot           = flag.String("from_root", "", "topology server root to copy data from")
go/cmd/topo2topo/topo2topo.go:  toImplementation = flag.String("to_implementation", "", "topology implementation to copy data to")
go/cmd/topo2topo/topo2topo.go:  toServerAddress  = flag.String("to_server", "", "topology server address to copy data to")
go/cmd/topo2topo/topo2topo.go:  toRoot           = flag.String("to_root", "", "topology server root to copy data to")
go/cmd/topo2topo/topo2topo.go:  compare             = flag.Bool("compare", false, "compares data between topologies")
go/cmd/topo2topo/topo2topo.go:  doKeyspaces         = flag.Bool("do-keyspaces", false, "copies the keyspace information")
go/cmd/topo2topo/topo2topo.go:  doShards            = flag.Bool("do-shards", false, "copies the shard information")
go/cmd/topo2topo/topo2topo.go:  doShardReplications = flag.Bool("do-shard-replications", false, "copies the shard replication information")
go/cmd/topo2topo/topo2topo.go:  doTablets           = flag.Bool("do-tablets", false, "copies the tablet information")
go/cmd/topo2topo/topo2topo.go:  doRoutingRules      = flag.Bool("do-routing-rules", false, "copies the routing rules")
go/cmd/topo2topo/topo2topo.go:          flag.Usage()

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions