Fixing Click's auto --help collision with a help argument

Click's auto-generated help option reused the internal name 'help', which caused commands with an argument named help to misparse positional input as the boolean help flag. I fixed the internal-name collision and added a regression test.

CLOSEDpallets/clickPR #33922026-04-29
  • Autogenerated from commit fix: avoid help option collisions with help arguments.
  • Updated files captured from git for branch fix/help-argument-auto-help.
  • Add test results manually if needed.
  • src/click/core.py
  • tests/test_basic.py
  • Maintainer response — Kevin Deldycke rejected the PR with a blunt "AI slop" comment and immediately closed it. Open
  • 2026-04-29 — Maintainer kdeldycke commented "AI slop" and closed the PR. Open
  • Review and enrich this autogenerated draft before publishing externally if higher polish is needed.
  • Before opening a fix PR in a mature project, review recent issue and PR history closely; even a real fix can be treated as noise if it repeats context maintainers already rejected or discussed.
  • Trust matters as much as correctness: when a PR reads as low-context or AI-shaped, maintainers may close it before engaging with the technical patch.

More entries