Skip to content

Commit dcf29cc

Browse files
Copilotbloxster
andauthored
cmd/utils, node/cli: fix spelling typos in --help flag descriptions (#19354)
Three typos in CLI `--help` flag `Usage` strings visible to all users via `erigon --help`. ## Changes - `cmd/utils/flags.go` — `HTTPDebugSingleFlag`: `printt` → `print` - `cmd/utils/flags.go` — `RpcBatchConcurrencyFlag`: `bach` → `batch` - `node/cli/flags.go` — `PruneModeFlag`: `run onto` → `run on` <!-- START COPILOT ORIGINAL PROMPT --> <details> <summary>Original prompt</summary> > Fix spelling errors in `erigon --help` flag descriptions. > > ## Context > Users report spelling mistakes in the CLI help output when running `./build/bin/erigon --help`. > > ## Required changes > Update user-facing flag `Usage` strings to correct spelling typos (keep changes minimal; do not do broader rewrites). > > Specifically: > 1. In `cmd/utils/flags.go`, update the `HTTPDebugSingleFlag` usage string to change `printt` -> `print`. > 2. In `cmd/utils/flags.go`, update the `RpcBatchConcurrencyFlag` usage string to change `bach` -> `batch`. > 3. In `node/cli/flags.go`, update the `PruneModeFlag` usage string to change `run onto` -> `run on`. > > ## Acceptance criteria > - `./build/bin/erigon --help` no longer contains the above typos. > - Changes are limited to spelling-only updates in the relevant `Usage` strings. > - Build/tests (if any) continue to pass. > </details> <!-- START COPILOT CODING AGENT SUFFIX --> *This pull request was created from Copilot chat.* > --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: bloxster <40316187+bloxster@users.noreply.github.com>
1 parent 8bf8433 commit dcf29cc

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

cmd/utils/flags.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ var (
358358
}
359359
RpcBatchConcurrencyFlag = cli.UintFlag{
360360
Name: "rpc.batch.concurrency",
361-
Usage: "Does limit amount of goroutines to process 1 batch request. Means 1 bach request can't overload server. 1 batch still can have unlimited amount of request",
361+
Usage: "Does limit amount of goroutines to process 1 batch request. Means 1 batch request can't overload server. 1 batch still can have unlimited amount of request",
362362
Value: 2,
363363
}
364364
RpcStreamingDisableFlag = cli.BoolFlag{
@@ -382,7 +382,7 @@ var (
382382
HTTPDebugSingleFlag = cli.BoolFlag{
383383
Name: "http.dbg.single",
384384
Aliases: []string{"rpc.dbg.single"},
385-
Usage: "Allow pass HTTP header 'dbg: true' to printt more detailed logs - how this request was executed",
385+
Usage: "Allow pass HTTP header 'dbg: true' to print more detailed logs - how this request was executed",
386386
}
387387
DBReadConcurrencyFlag = cli.IntFlag{
388388
Name: "db.read.concurrency",

node/cli/flags.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ var (
7676

7777
PruneModeFlag = cli.StringFlag{
7878
Name: "prune.mode",
79-
Usage: `Choose a pruning preset to run onto. Available values: "full", "archive", "minimal", "blocks".
79+
Usage: `Choose a pruning preset to run on. Available values: "full", "archive", "minimal", "blocks".
8080
full: Keep only necessary blocks and latest state,
8181
blocks: Keep all blocks but not the state history,
8282
archive: Keep the entire state history and all blocks,

0 commit comments

Comments
 (0)