Skip to content

docs: document boolean flag usage - #1535

Merged
jooola merged 1 commit into
mainfrom
boolean-flag-docs
Nov 18, 2026
Merged

jooola merged 1 commit into
mainfrom
boolean-flag-docs

Conversation

@phm07

@phm07 phm07 commented Nov 12, 2026

Copy link
Copy Markdown
Contributor

Upstream (spf13/pflag) released the change that now includes [=true|false] in the generated help text. This means we can re-generate the docs and can drop the (true, false) hints from existing bool flags.

The version bump also now respects the default nil value we pass into StringToString(), so the tests have been fixed accordingly.

Fixes #1176

See also spf13/pflag#453

@phm07 phm07 self-assigned this Nov 12, 2026
@phm07
phm07 requested a review from a team as a code owner November 12, 2026 09:59
@codecov

codecov Bot commented Nov 12, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 79.75%. Comparing base (d25ad29) to head (a6df309).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1535   +/-   ##
=======================================
  Coverage   79.75%   79.75%           
=======================================
  Files         303      303           
  Lines        9596     9596           
=======================================
  Hits         7653     7653           
  Misses       1943     1943           
Flag Coverage Δ
e2e 54.68% <100.00%> (+0.02%) ⬆️
unit 75.47% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@jooola
jooola merged commit 8174b31 into main Nov 18, 2026
8 checks passed
@jooola
jooola deleted the boolean-flag-docs branch November 18, 2026 15:06
jooola added a commit that referenced this pull request Nov 18, 2026
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.

Specifying a boolean option in the form --option true creates confusing error, and help text does not specify that this is invalid

2 participants