Switch to flag.String from flag.StringVar, removing init()

This commit is contained in:
Alexander Ewetumo 2017-10-23 17:16:15 +01:00
parent 7718bd5990
commit 14c124aef8
1 changed files with 1 additions and 5 deletions

View File

@ -17,13 +17,9 @@ import (
)
var (
networkSelected string
networkSelected = flag.String("network", "statuschain", "-network=NETWORKNAME or -network=NETWORKID to select network used for tests")
)
func init() {
flag.StringVar(&networkSelected, "network", "statuschain", "-network=NETWORKNAME or -network=NETWORKID to select network used for tests")
}
// TestNodeOption is a callback passed to StartTestNode which alters its config.
type TestNodeOption func(config *params.NodeConfig)