mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-11-27 03:58:06 +00:00
Merge pull request #1502 from nspcc-dev/cli/fix_network_args
cli: fixed removed network arguments
This commit is contained in:
commit
5bba9c158a
1 changed files with 6 additions and 1 deletions
|
@ -22,7 +22,12 @@ const RPCEndpointFlag = "rpc-endpoint"
|
||||||
|
|
||||||
// Network is a set of flags for choosing the network to operate on
|
// Network is a set of flags for choosing the network to operate on
|
||||||
// (privnet/mainnet/testnet).
|
// (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).
|
// RPC is a set of flags used for RPC connections (endpoint and timeout).
|
||||||
var RPC = []cli.Flag{
|
var RPC = []cli.Flag{
|
||||||
|
|
Loading…
Reference in a new issue