Skip to content

fix(usage): list -no-rc in -h and document the theme eggs#74

Merged
peczenyj merged 1 commit into
develfrom
fix/no-rc-in-usage
May 28, 2026
Merged

fix(usage): list -no-rc in -h and document the theme eggs#74
peczenyj merged 1 commit into
develfrom
fix/no-rc-in-usage

Conversation

@peczenyj
Copy link
Copy Markdown
Owner

Summary

  • Registers -no-rc with the regular flag.FlagSet so it appears in -h output (it was only handled by the early-scan path before, which kept it invisible).
  • The early scan still peeks at -no-rc so the RC loader — which runs before fs.Parse — can honor it, but no longer strips the flag from args; fs.Parse now binds opt.noRC like any other config flag.
  • Adds a tiny Easter eggs section to the README documenting -cga, -green, -amber as shortcuts for STRUCTALIGN_THEME=… (the only intentional eggs still hidden from -h).
  • Folds the dangling -version / -no-rc lines in the README flag block into the indented list, matching the surrounding flags.

Test plan

  • TestUsageHasManPageSections now asserts -no-rc is present in usage output (RED before the fix, GREEN after).
  • TestUsageOmitsEasterEggs updated to drop the obsolete -no-rc exclusion; it still guards -fix, -cga, -green, -amber.
  • Existing layered-config / no-rc behavior preserved: TestRunLayeredConfig/NoRC passes (RC loading skipped when -no-rc is on the command line).
  • task ci — lint + go-consistent + build + full test suite + smoke.

Closes #72.

🤖 Generated with Claude Code

The -no-rc flag was registered only inside scanEarlyFlags, so it never
appeared in -h and the only mention lived in README. It is a normal
config flag (no different from -threshold or -tags), not an easter egg,
so register it with the FlagSet and keep an early peek just to honor it
before RC loading runs.

Adds a tiny "Easter eggs" README section documenting -cga / -green /
-amber as shortcuts for STRUCTALIGN_THEME, and folds the dangling
-version / -no-rc lines into the indented flag block.

Closes #72.
@peczenyj peczenyj self-assigned this May 28, 2026
@peczenyj peczenyj merged commit db28141 into devel May 28, 2026
6 checks passed
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.

-no-rc flag missing from -h usage output

1 participant