Repository navigation
Preserve custom prefixes when expanding compound arguments - #438
Merged
Merged
Conversation
fhgffy
marked this pull request as ready for review
October 3, 2026 23:18
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.
Compound arguments recognize configured prefix characters but expand each short option using a hard-coded
-. Withset_prefix_chars("+"),+abtherefore fails to find+aand+b. If both-and+options are registered, it can silently activate the wrong options instead.Preserve the compound token's actual prefix in both
parse_argsandparse_known_args. Add regression coverage for default, plus and slash prefixes, value consumption, cross-prefix isolation, unknown arguments, and exact-name precedence.Validation on master
4dbc0ffd3d5f83941eab12e73966724d8931ae07, GCC 14.2/C++17:git diff --checkpassesLeak detection was disabled because LeakSanitizer cannot run under this environment's ptrace. Clang/MSVC and clang-tidy were not run locally.