From 1367d0df0013d918ba35b9d9ea43784f5c578c2a Mon Sep 17 00:00:00 2001 From: Roman Khimov Date: Fri, 5 Aug 2022 16:04:56 +0300 Subject: [PATCH] cli: provide more explanations for node options --- cli/options/options.go | 6 +++--- cli/server/server.go | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/cli/options/options.go b/cli/options/options.go index 0f4b72562..cc73d3a97 100644 --- a/cli/options/options.go +++ b/cli/options/options.go @@ -23,9 +23,9 @@ const RPCEndpointFlag = "rpc-endpoint" // Network is a set of flags for choosing the network to operate on // (privnet/mainnet/testnet). var Network = []cli.Flag{ - cli.BoolFlag{Name: "privnet, p"}, - cli.BoolFlag{Name: "mainnet, m"}, - cli.BoolFlag{Name: "testnet, t"}, + cli.BoolFlag{Name: "privnet, p", Usage: "use private network configuration"}, + cli.BoolFlag{Name: "mainnet, m", Usage: "use mainnet network configuration"}, + cli.BoolFlag{Name: "testnet, t", Usage: "use testnet network configuration"}, cli.BoolFlag{Name: "unittest", Hidden: true}, } diff --git a/cli/server/server.go b/cli/server/server.go index 173a46f6f..6f85690e4 100644 --- a/cli/server/server.go +++ b/cli/server/server.go @@ -43,12 +43,12 @@ var ( // NewCommands returns 'node' command. func NewCommands() []cli.Command { var cfgFlags = []cli.Flag{ - cli.StringFlag{Name: "config-path"}, + cli.StringFlag{Name: "config-path", Usage: "path to directory with configuration files"}, } cfgFlags = append(cfgFlags, options.Network...) var cfgWithCountFlags = make([]cli.Flag, len(cfgFlags)) copy(cfgWithCountFlags, cfgFlags) - cfgFlags = append(cfgFlags, cli.BoolFlag{Name: "debug, d"}) + cfgFlags = append(cfgFlags, cli.BoolFlag{Name: "debug, d", Usage: "enable debug logging (LOTS of output)"}) cfgWithCountFlags = append(cfgWithCountFlags, cli.UintFlag{