diff --git a/cmd/flags_node.go b/cmd/flags_node.go index 881fad1ff8..f4a5aed8f4 100644 --- a/cmd/flags_node.go +++ b/cmd/flags_node.go @@ -35,7 +35,7 @@ func NodeFlags() *flag.FlagSet { flags.String( nodeNetworkFlag, "", - "The name of the network to connect to, e.g. arabica or mamaki", + "The name of the network to connect to, e.g. "+params.ListProvidedNetworks(), ) return flags diff --git a/params/network.go b/params/network.go index 2358f4ef44..f748e230cb 100644 --- a/params/network.go +++ b/params/network.go @@ -39,3 +39,11 @@ var networksList = map[Network]struct{}{ Mamaki: {}, Private: {}, } + +func ListProvidedNetworks() string { + var networks string + for net := range networksList { + networks += string(net) + ", " + } + return networks[:len(networks)-2] +}