Skip to content

docs(installation): rename --buildDelay to --build-delay in install examples - #1006

Open
Aditya060806 wants to merge 1 commit into
keploy:mainfrom
Aditya060806:docs/fix-build-delay-flag-installation
Open

Aditya060806 wants to merge 1 commit into
keploy:mainfrom
Aditya060806:docs/fix-build-delay-flag-installation

Conversation

@Aditya060806

@Aditya060806 Aditya060806 commented Nov 23, 2026 •

Copy link
Copy Markdown

What has changed?

versioned_docs/version-4.0.0/server/installation_tabs.md — the install guide that drives the Linux / macOS / Windows tabs on https://keploy.io/docs/server/installation — pairs every tab with a keploy record and a keploy test example that still ends with --buildDelay 60. The canonical spelling that keploy --help documents (and that cli/provider/cmd.go registers via cmd.Flags().Uint64P("build-delay", "b", …)) is --build-delay. This PR renames the stale camelCase spelling to the canonical kebab-case spelling across all 14 occurrences (seven install tabs × a record + test pair), no other change. Consistency cleanup, not a functional change — see "Clarification on prior framing" below.

Cobra flag registration (cli/provider/cmd.go):

cmd.Flags().Uint64P("build-delay", "b", c.cfg.BuildDelay, "User provided time to wait docker container build")

Cobra flag registration in cli/provider/cmd.go

Diff (git diff -U0): 14 insertions, 14 deletions, 1 file.

git diff -U0 of the 14 line swaps

Clarification on prior framing

The earlier version of this description claimed --buildDelay would fail with unknown flag. That claim was wrong. As @Namanv0509 pointed out in review: Keploy installs an alias normalizer in cli/provider/cmd.go (cmd.Flags().SetNormalizeFunc(aliasNormalizeFunc)) whose map includes "buildDelay": "build-delay" and "containerName": "container-name", so both spellings are accepted and behave identically. The error claim was based on reading only the flag-registration site in the source and inferring behaviour, not on running the CLI — my mistake, apologies for the confusion.

With the alias normalizer in place, this PR is a docs consistency update: aligning the install tabs with the canonical spelling that keploy --help documents and that the quickstart folder already uses post-#981. It is not a bug fix.

Related work

This is a direct follow-up to @Namanv0509's #981, which walked each quickstart end to end and fixed, among other deviations, the same --buildDelay → --build-delay and --containerName → --container-name rename across versioned_docs/version-4.0.0/quickstart/*.md. That PR deliberately scoped itself to the quickstart folder; the install tabs page carried the same stale flag spellings and wasn't in scope. This PR closes that gap for the server install page.

I deliberately left --buildDelay and --containerName alone in the other install-adjacent files (concepts/installation.md, installation/macos.md, installation/windows.md, server/{linux,macos,windows}/installation.md, the two keploy-cloud/*deduplication.md pages, and the three remaining quickstarts) so this stays a tight, one-file review. Happy to open a second PR for the rest once this pattern is confirmed, or fold them in here if the reviewer prefers.

Type of change

  • Bug fix (non-breaking change which fixes an issue).
  • Documentation update (if none of the other choices apply).

How Has This Been Tested?

Ran on Windows 11, Node 24.16.0, Yarn 1.22.22. onBrokenLinks: "throw" and onBrokenAnchors: "throw" are both set in docusaurus.config.js, so the build fails on any unresolved link or anchor.

yarn build — clean on HEAD~1 (before the rename) and on HEAD (after): 266 documents processed, Client + Server compiled, [SUCCESS] Generated static files in "build".

yarn build clean after the rename

No rendered output changes: the swap is inside already-rendered <code> blocks, so every --build-delay 60 lands at the same column where --buildDelay 60 was. I did not re-run yarn serve because the touched lines only change the text inside code fences; happy to attach a side-by-side if the reviewer wants one.

Checklist

  • My code follows the style guidelines of this project.
  • I have performed a self-review of my own code.

Additional notes

Scope guard: one file, one pattern, 14 occurrences, no reformatting, no trailing-whitespace tidying, no keploy test --c → keploy test -c cleanup even though that stray extra dash caught my eye on the same lines. If you'd like me to fold that in, say the word and I'll push a follow-up commit; otherwise it's a separate PR.

…xamples

The flag is registered on both keploy record and keploy test as the
kebab-case "build-delay" (cli/provider/cmd.go line 1057:
`cmd.Flags().Uint64P("build-delay", "b", c.cfg.BuildDelay, ...)`).
Cobra/pflag does not accept the camelCase spelling, so a reader who
copies the "--buildDelay 60" suffix from the server installation tabs
hits `unknown flag: --buildDelay` on the first command they run after
installing.

The seven install-tab pairs (Linux native, Linux Docker, Linux Lima,
Linux WSL, macOS, Windows native, Windows WSL) each repeat the same
two example lines, so this is 14 occurrences in
versioned_docs/version-4.0.0/server/installation_tabs.md, all
mechanical. No other change.

Verified: yarn build clean before and after on Windows 11, Node 24.16,
yarn 1.22.22. 266 documents processed, no broken-link or anchor throws.

Signed-off-by: Aditya Pandey <aditya060806@gmail.com>

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you and congratulations 🎉 for opening your very first pull request in keploy

@Aditya060806
Aditya060806 marked this pull request as ready for review November 23, 2026 13:37
Copilot AI balanced review requested due to automatic review settings November 23, 2026 13:37

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing. Review the Copilot code review billing settings.

@Namanv0509

Copy link
Copy Markdown
Contributor

Hi @Aditya060806, thanks a lot for raising this PR and for keeping the docs up to date and consistent with the canonical command syntax! 🙌

One clarification on the description: --buildDelay doesn't actually fail. Keploy registers the flag as build-delay, but it also installs an alias normalizer (aliasNormalizeFunc in cli/provider/cmd.go, set via cmd.Flags().SetNormalizeFunc(...)) whose map includes "buildDelay": "build-delay" and "containerName": "container-name". So both spellings are accepted and behave identically. I ran keploy record / keploy test with each of them on Keploy 3.9.17 and neither gave unknown flag.

So this isn't a bug fix, but standardizing on --build-delay (what keploy --help documents) is still a good consistency cleanup. Could you please:

  • reword the description to drop the unknown flag: --buildDelay claim and untick "Bug fix" (it's a docs/consistency update), and
  • if you did see that error, share the exact command, keploy --version and output, since it might be an older binary without the alias.

Happy to merge once that's updated. Thanks again! 🎉

@Aditya060806

Copy link
Copy Markdown
Author

Thanks for catching that, @Namanv0509 — you're completely right. The aliasNormalizeFunc map was in the source all along; I only looked at cmd.Flags().Uint64P("build-delay", ...) and jumped to the wrong conclusion about what users would see. Apologies for the misleading "unknown flag" framing.

I did not actually run keploy record with --buildDelay on 3.9.17 or any other binary — the claim came entirely from reading the registration site, not from reproduction. I should have tested before wording it that way.

Updated the PR body:

  • Dropped the "unknown flag" / "hard reject" claims.
  • Added a "Clarification on prior framing" section crediting your correction and quoting the normalizer map.
  • Unticked "Bug fix" and left only "Documentation update" in the Type of change.
  • Reframed the whole thing as a docs consistency update aligning the install tabs with the canonical spelling keploy --help documents.

Diff is unchanged (still the same 14-line swap). Thanks again — and happy to add the follow-up second PR for the remaining install-adjacent files (concepts/installation.md, installation/{macos,windows}.md, server/{linux,macos,windows}/installation.md, the two keploy-cloud/*deduplication.md pages, and the three remaining quickstarts) once this one lands.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants