Repository navigation
Add rfl::cli::read_into, OptGroup, GnuStyle/GnuLastWins/PosixStrict presets, and Flag/Arg ergonomics - #65
Closed
clockblocker wants to merge 1 commit into
Conversation
clockblocker
force-pushed
the
cli-attributes-and-syntax-processors
branch
from
November 27, 2026 07:30
175eca5 to
8569e03
Compare
…resets, and Flag/Arg ergonomics
clockblocker
force-pushed
the
cli-read-into-optgroup-presets
branch
from
November 27, 2026 07:31
5530a48 to
2ef32c2
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.
Completes the declarative
rfl::cliergonomics layer:rfl::cli::read_into<Ps...>(T& target, ...)&ReadIntoResult: overlays CLI flags in place onto an existing plain C++ domain struct, preserving untouched fields, earlier presets, or values loaded from config filesrfl::cli::OptGroup<"Section", SubStruct>: flattens a reusable sub-struct into the parent CLI while propagating its section group to all child fields (respecting per-fieldGroupoverrides)rfl::cli::GnuStyle,rfl::cli::GnuLastWins,rfl::cli::PosixStrictprocessor presets (RequireEqualscomposes cleanly on top of them)rfl::cli::Flag<Attrs...>,rfl::cli::Arg<T, Attrs...>, andOpt::operator bool()/operator*/operator->ergonomicsStacked on
cli-attributes-and-syntax-processors(#64). Verified with ASan + UBSan across all CLI tests plus standalone self-contained header compilation checks.