Repository navigation
Add rfl::cli::ListDelimiter to change or turn off list splitting - #30
Open
clockblocker wants to merge 1 commit into
Open
clockblocker wants to merge 1 commit into
clockblocker wants to merge 1 commit into
Conversation
clockblocker
force-pushed
the
wave-base-6
branch
from
November 14, 2026 13:01
048f9fb to
c7718dc
Compare
clockblocker
force-pushed
the
cli-list-delimiter
branch
from
November 14, 2026 13:01
88d7f3f to
4c6b294
Compare
clockblocker
force-pushed
the
cli-list-delimiter
branch
from
November 15, 2026 08:21
4c6b294 to
4359169
Compare
clockblocker
force-pushed
the
wave-base-9
branch
from
November 16, 2026 05:18
2e02bc2 to
ebe2135
Compare
clockblocker
force-pushed
the
cli-list-delimiter
branch
from
November 16, 2026 05:18
4359169 to
5953b5f
Compare
clockblocker
force-pushed
the
wave-base-9
branch
from
November 17, 2026 04:36
ebe2135 to
d77d479
Compare
clockblocker
force-pushed
the
cli-list-delimiter
branch
from
November 17, 2026 04:36
5953b5f to
57e606f
Compare
clockblocker
force-pushed
the
wave-base-9
branch
from
November 17, 2026 05:11
d77d479 to
9956818
Compare
clockblocker
force-pushed
the
cli-list-delimiter
branch
2 times, most recently
from
November 17, 2026 07:15
63d29a0 to
4ddaa81
Compare
rfl::cli splits list values at commas, so an item cannot contain one. ListDelimiter<";"> splits at ';' instead, and ListDelimiter<""> does not split: each occurrence of a list option, and each positional argument of a list, is then exactly one item, even if it is empty. The setting applies to every list of the struct; other fields are never split. The delimiter is a single ASCII character, which a static_assert checks. Like rfl::cli::AllowAbbreviations it is a processor that only rfl::cli looks at: read passes it to the Reader, which splits each occurrence with it, and usage shows `<v1;v2;...>`, or `<value>` without splitting. Co-Authored-By: Claude Opus 5.5 <[email protected]>
clockblocker
force-pushed
the
wave-base-9
branch
from
November 17, 2026 09:45
166cf83 to
03f4447
Compare
clockblocker
force-pushed
the
cli-list-delimiter
branch
from
November 17, 2026 09:45
4ddaa81 to
4611e69
Compare
This was referenced Nov 21, 2026
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.
Summary
Adds the opt-in
rfl::cli::ListDelimiter<"...">processor to change the list-splitting separator or disable splitting (ListDelimiter<"">) so items can contain commas.Example
Key details
,) is unchanged when omitted; ignored by non-CLI formats.ListDelimiteris astatic_assert).rfl::cli::usageformats list placeholders and defaults with the same delimiter (multi-item defaults are omitted underListDelimiter<"">).cli.md("List delimiter").Open question: should CLI-only settings (
ListDelimiter,AllowAbbreviations,OptionsFirst,KeepEmptyItems) remain compile-time processors, or become a runtimerfl::cli::Settingsstruct likerfl::csv::Settings/rfl::parquet::Settings?AI-authored. Depends on: #26, #35, #36.