Repository navigation
Add rfl::cli::Opt variadic wrapper and rfl::cli::read_detailed - #62
Closed
clockblocker wants to merge 1 commit into
Closed
clockblocker wants to merge 1 commit into
clockblocker wants to merge 1 commit into
Conversation
This was referenced Nov 27, 2026
Closed
clockblocker
force-pushed
the
optimize-view-reader-wrapper-peeling
branch
from
November 27, 2026 07:27
4270a29 to
f0531bf
Compare
…ken/DefaultHint) and rfl::cli::read_detailed
clockblocker
force-pushed
the
cli-opt-and-read-detailed
branch
from
November 27, 2026 07:28
297b6be to
ae51642
Compare
Owner
Author
|
Branch is preserved on |
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.
Introduces the single-layer
rfl::cli::Opt<T, Attrs...>wrapper andrfl::cli::read_detailed, keeping CLI-only formatting/parsing attributes strictly insiderfl::cli::attr(no standalone top-levelrfl::ValueName,rfl::MultiToken, orrfl::DefaultHintwrappers polluting non-CLI formats):rfl::cli::Opt<T, Attrs...>+rfl::cli::attr::{Short, Desc, Group, ValueName, Hidden, Positional, MultiToken, Implicit, Deprecated, DefaultHint}attr::ValueName: custom value placeholders inrfl::cli::usage(folded from superseded Add rfl::ValueName and rfl::MultiToken wrappers for rfl::cli #59)attr::MultiToken: multi-token space-separated list options inparse_argvandusage(folded from superseded Add rfl::ValueName and rfl::MultiToken wrappers for rfl::cli #59)attr::DefaultHint: display-only default hint inrfl::cli::usagerfl::cli::read_detailed<T, Ps...>: returnsReadResult<T>with sorted explicitlyprovidedcanonical option names (was_provided(...))Stacked on
optimize-view-reader-wrapper-peeling(#61). Verified with ASan + UBSan across all CLI tests.