Skip to content

Commit

Permalink
Merge pull request #1502 from nspcc-dev/cli/fix_network_args
Browse files Browse the repository at this point in the history
cli: fixed removed network arguments
  • Loading branch information
roman-khimov authored Oct 21, 2020
2 parents 8be7cd4 + 795823e commit 5bba9c1
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion cli/options/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand Down

0 comments on commit 5bba9c1

Please sign in to comment.