Skip to content

Commit 97f38ce

Browse files
committed
cmd/geth: update flag groups in the geth command usage
1 parent 732b753 commit 97f38ce

File tree

2 files changed

+14
-5
lines changed

2 files changed

+14
-5
lines changed

cmd/geth/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ func init() {
5555
// Initialize the CLI app and start Geth
5656
app.Action = geth
5757
app.HideVersion = true // we have a command to print the version
58-
app.Copyright = "Copyright 2013-2016 The go-ethereum Authors"
58+
app.Copyright = "Copyright 2013-2017 The go-ethereum Authors"
5959
app.Commands = []cli.Command{
6060
// See chaincmd.go:
6161
initCommand,

cmd/geth/usage.go

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ import (
3030
var AppHelpTemplate = `NAME:
3131
{{.App.Name}} - {{.App.Usage}}
3232
33-
Copyright 2013-2016 The go-ethereum Authors
33+
Copyright 2013-2017 The go-ethereum Authors
3434
3535
USAGE:
3636
{{.App.HelpName}} [options]{{if .App.Commands}} command [command options]{{end}} {{if .App.ArgsUsage}}{{.App.ArgsUsage}}{{else}}[arguments...]{{end}}
@@ -64,14 +64,15 @@ var AppHelpFlagGroups = []flagGroup{
6464
{
6565
Name: "ETHEREUM",
6666
Flags: []cli.Flag{
67+
configFileFlag,
6768
utils.DataDirFlag,
6869
utils.KeyStoreDirFlag,
6970
utils.NetworkIdFlag,
7071
utils.TestNetFlag,
7172
utils.DevModeFlag,
73+
utils.SyncModeFlag,
74+
utils.EthStatsURLFlag,
7275
utils.IdentityFlag,
73-
utils.FastSyncFlag,
74-
utils.LightModeFlag,
7576
utils.LightServFlag,
7677
utils.LightPeersFlag,
7778
utils.LightKDFFlag,
@@ -132,6 +133,7 @@ var AppHelpFlagGroups = []flagGroup{
132133
utils.NATFlag,
133134
utils.NoDiscoverFlag,
134135
utils.DiscoveryV5Flag,
136+
utils.NetrestrictFlag,
135137
utils.NodeKeyFileFlag,
136138
utils.NodeKeyHexFlag,
137139
},
@@ -163,11 +165,18 @@ var AppHelpFlagGroups = []flagGroup{
163165
{
164166
Name: "LOGGING AND DEBUGGING",
165167
Flags: append([]cli.Flag{
166-
utils.EthStatsURLFlag,
167168
utils.MetricsEnabledFlag,
168169
utils.FakePoWFlag,
170+
utils.NoCompactionFlag,
169171
}, debug.Flags...),
170172
},
173+
{
174+
Name: "DEPRECATED",
175+
Flags: []cli.Flag{
176+
utils.FastSyncFlag,
177+
utils.LightModeFlag,
178+
},
179+
},
171180
{
172181
Name: "EXPERIMENTAL",
173182
Flags: []cli.Flag{

0 commit comments

Comments
 (0)