forked from cerc-io/plugeth
cmd/devp2p, cmd/geth: add version in --help output (#26895)
Not sure why this was removed, it's pretty useful to see the version also in --help.
This commit is contained in:
parent
6bc68f8d94
commit
f86913bc3e
@ -29,7 +29,6 @@ import (
|
|||||||
var app = flags.NewApp("go-ethereum devp2p tool")
|
var app = flags.NewApp("go-ethereum devp2p tool")
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
app.HideVersion = true
|
|
||||||
app.Flags = append(app.Flags, debug.Flags...)
|
app.Flags = append(app.Flags, debug.Flags...)
|
||||||
app.Before = func(ctx *cli.Context) error {
|
app.Before = func(ctx *cli.Context) error {
|
||||||
flags.MigrateGlobalFlags(ctx)
|
flags.MigrateGlobalFlags(ctx)
|
||||||
|
@ -205,7 +205,6 @@ var app = flags.NewApp("the go-ethereum command line interface")
|
|||||||
func init() {
|
func init() {
|
||||||
// Initialize the CLI app and start Geth
|
// Initialize the CLI app and start Geth
|
||||||
app.Action = geth
|
app.Action = geth
|
||||||
app.HideVersion = true // we have a command to print the version
|
|
||||||
app.Copyright = "Copyright 2013-2023 The go-ethereum Authors"
|
app.Copyright = "Copyright 2013-2023 The go-ethereum Authors"
|
||||||
app.Commands = []*cli.Command{
|
app.Commands = []*cli.Command{
|
||||||
// See chaincmd.go:
|
// See chaincmd.go:
|
||||||
|
Loading…
Reference in New Issue
Block a user