Skip to content

feat(getopt): introduce negated bool var type#31

Merged
brandon1024 merged 1 commit into
mainfrom
negated-bool
Apr 12, 2026
Merged

feat(getopt): introduce negated bool var type#31
brandon1024 merged 1 commit into
mainfrom
negated-bool

Conversation

@brandon1024

Copy link
Copy Markdown
Owner

This revision introduces a new type NegatedBoolVar in package getopt for representing boolean flags which are the inverse of another flag. For instance, configuring a '--no-gpg-sign' flag.

Additionally, the CounterVar example has been improved with a more motivating example.

Update Go toolchain to 1.26.2.

This revision introduces a new type NegatedBoolVar in package getopt for
representing boolean flags which are the inverse of another flag. For
instance, configuring a '--no-gpg-sign' flag.

Additionally, the CounterVar example has been improved with a more
motivating example.

Update Go toolchain to 1.26.2.
@brandon1024 brandon1024 merged commit 856da08 into main Apr 12, 2026
1 check passed
@brandon1024 brandon1024 deleted the negated-bool branch April 12, 2026 06:36
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