Skip to content

Make partial success of FlagSet.Parse possible#155

Merged
peterbourgon merged 2 commits intomainfrom
flagset-partial-parse
Aug 2, 2025
Merged

Make partial success of FlagSet.Parse possible#155
peterbourgon merged 2 commits intomainfrom
flagset-partial-parse

Conversation

@peterbourgon
Copy link
Owner

This PR changes FlagSet.Parse to mark the FlagSet as parsed, even on error. This is in support of use cases where a sequence of FlagSets parse a diminishing set of args, essentially an alternative approach to the current Command structure.

@peterbourgon peterbourgon merged commit 012e827 into main Aug 2, 2025
3 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.

1 participant