Skip to content

Add rfl::cli::read_into, OptGroup, GnuStyle/GnuLastWins/PosixStrict presets, and Flag/Arg ergonomics - #65

Closed
clockblocker wants to merge 1 commit into
cli-attributes-and-syntax-processorsfrom
cli-read-into-optgroup-presets
Closed

clockblocker wants to merge 1 commit into
cli-attributes-and-syntax-processorsfrom
cli-read-into-optgroup-presets

Conversation

@clockblocker

Copy link
Copy Markdown
Owner

Completes the declarative rfl::cli ergonomics 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 files
  • rfl::cli::OptGroup<"Section", SubStruct>: flattens a reusable sub-struct into the parent CLI while propagating its section group to all child fields (respecting per-field Group overrides)
  • rfl::cli::GnuStyle, rfl::cli::GnuLastWins, rfl::cli::PosixStrict processor presets (RequireEquals composes cleanly on top of them)
  • rfl::cli::Flag<Attrs...>, rfl::cli::Arg<T, Attrs...>, and Opt::operator bool() / operator* / operator-> ergonomics

Stacked on cli-attributes-and-syntax-processors (#64). Verified with ASan + UBSan across all CLI tests plus standalone self-contained header compilation checks.

@clockblocker
clockblocker force-pushed the cli-attributes-and-syntax-processors branch from 175eca5 to 8569e03 Compare November 27, 2026 07:30
@clockblocker
clockblocker force-pushed the cli-read-into-optgroup-presets branch from 5530a48 to 2ef32c2 Compare November 27, 2026 07:31
@clockblocker

Copy link
Copy Markdown
Owner Author

Closing mega-PR: read_into, Arg, and PosixStrict are cut; kept pieces (GnuStyle preset -> Wave 3b; Flag, OptGroup -> Wave 4 RFC) will be split cleanly (branch preserved).

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