cli: fixed removed network arguments

Should be done in 590be7a58d. I removed
network flags from RPC, but we still need them for server-related
cli commands.
This commit is contained in:
Anna Shaleva 2020-10-21 17:38:35 +03:00
parent 8be7cd4bff
commit 795823ee3b

View file

@ -22,7 +22,12 @@ const RPCEndpointFlag = "rpc-endpoint"
// Network is a set of flags for choosing the network to operate on
// (privnet/mainnet/testnet).
var Network = RPC[2:]
var Network = []cli.Flag{
cli.BoolFlag{Name: "privnet, p"},
cli.BoolFlag{Name: "mainnet, m"},
cli.BoolFlag{Name: "testnet, t"},
cli.BoolFlag{Name: "unittest", Hidden: true},
}
// RPC is a set of flags used for RPC connections (endpoint and timeout).
var RPC = []cli.Flag{