Switch to flag.String from flag.StringVar, removing init()
This commit is contained in:
parent
7718bd5990
commit
14c124aef8
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue