Skip to content

Commit c34b2c1

Browse files
fjlmmsqe
authored andcommittedDec 7, 2023
cmd/devp2p, cmd/geth: add version in --help output (ethereum#26895)
Not sure why this was removed, it's pretty useful to see the version also in --help.
1 parent 622e273 commit c34b2c1

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed
 

‎cmd/devp2p/main.go

-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ import (
2929
var app = flags.NewApp("go-ethereum devp2p tool")
3030

3131
func init() {
32-
app.HideVersion = true
3332
app.Flags = append(app.Flags, debug.Flags...)
3433
app.Before = func(ctx *cli.Context) error {
3534
flags.MigrateGlobalFlags(ctx)

‎cmd/geth/main.go

-1
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,6 @@ var app = flags.NewApp("the go-ethereum command line interface")
205205
func init() {
206206
// Initialize the CLI app and start Geth
207207
app.Action = geth
208-
app.HideVersion = true // we have a command to print the version
209208
app.Copyright = "Copyright 2013-2023 The go-ethereum Authors"
210209
app.Commands = []*cli.Command{
211210
// See chaincmd.go:

0 commit comments

Comments
 (0)
Please sign in to comment.