Repository navigation
Add LastValueWins, RequireEquals, multi-char Short, Sensitive argv masking, and occurrences log - #63
Closed
clockblocker wants to merge 1 commit into
Closed
clockblocker wants to merge 1 commit into
clockblocker wants to merge 1 commit into
Conversation
clockblocker
force-pushed
the
cli-opt-and-read-detailed
branch
from
November 27, 2026 07:28
297b6be to
ae51642
Compare
…sking, and occurrences log
clockblocker
force-pushed
the
cli-parsing-modes-and-occurrences
branch
from
November 27, 2026 07:29
4eaa3ae to
a89b5c2
Compare
Owner
Author
|
Closing mega-PR: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds common GNU/CLI parsing modes and occurrence-order tracking:
rfl::cli::LastValueWins: lets repeated scalar options overwrite earlier occurrences (--out a --out b→"b")rfl::cli::RequireEquals: requires--opt=valuefor value options (rejects bare--opt; takes precedence overSeparateOptionValuesso presets compose cleanly)rfl::Short<"CC">/rfl::Short<"rp">single-dash optionsrfl::cli::attr::Sensitive: overwrites sensitive option values in mutablechar* argv[]in place with'*'ReadResult<T>::occurrences: ordered vector of(canonical_long_name, value)pairs in exactargvorderStacked on
cli-opt-and-read-detailed(#62). Verified with ASan + UBSan across all CLI tests.