cmd/geth, internal/flags, go.mod: colorize cli help, support env vars (#28103)

* cmd/geth, internal/flags, go.mod: colorize cli help, support env vars

* internal/flags: use stdout, not stderr for terminal detection
This commit is contained in:
Péter Szilágyi
2023-09-14 10:33:59 +03:00
committed by GitHub
parent b9b99a12e5
commit d9fbb71d63
5 changed files with 76 additions and 15 deletions
+1
View File
@@ -244,6 +244,7 @@ func init() {
debug.Flags,
metricsFlags,
)
flags.AutoEnvVars(app.Flags, "GETH")
app.Before = func(ctx *cli.Context) error {
maxprocs.Set() // Automatically set GOMAXPROCS to match Linux container CPU quota.