Skip to content

feat(getopt): add counter flag type#25

Merged
brandon1024 merged 1 commit into
mainfrom
counters
Mar 24, 2026
Merged

feat(getopt): add counter flag type#25
brandon1024 merged 1 commit into
mainfrom
counters

Conversation

@brandon1024

Copy link
Copy Markdown
Owner

Introduce CounterVar which can be used to register flags which are simple counters.

Update getopt.Hide() to accept a flagset and flag name, for consistency with other utils.

@brandon1024 brandon1024 force-pushed the counters branch 2 times, most recently from 7893f10 to 08f20e9 Compare March 23, 2026 16:54
Introduce CounterVar which can be used to register flags which are
simple counters.

Update getopt.Hide() to accept a flagset and flag name, for consistency
with other utils.

Rename getopt.Hidden to HiddenVar for consistency.
@brandon1024 brandon1024 merged commit d594dc4 into main Mar 24, 2026
1 check passed
@brandon1024 brandon1024 deleted the counters branch March 24, 2026 07:05
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.

1 participant