Skip to content

sorting synopsis within ArgGroup - #2295

Merged
remkop merged 8 commits into
remkop:mainfrom
crotwell:sortArgGroupSynopsis
May 5, 2026
Merged

sorting synopsis within ArgGroup#2295
remkop merged 8 commits into
remkop:mainfrom
crotwell:sortArgGroupSynopsis

Conversation

@crotwell

Copy link
Copy Markdown
Contributor

This does not fix it, but contains a test case for #2294

@crotwell

Copy link
Copy Markdown
Contributor Author

Possible solution added, sorts options inside ArgGroup using Help.SortByOptionArityAndNameAlphabetically()

@crotwell

Copy link
Copy Markdown
Contributor Author

Two tests still failing, but not clear to me if the test data should just be modified or if keeping "code order" within an ArgGroup is important feature. Especially since "code order" doesn't work with setters, it seems like
[ARG1 | ARG2 | ARG3 | -a | -b | -c] should be considered equivalent to
[ -a | -b | -c | ARG1 | ARG2 | ARG3] but maybe not.

@crotwell crotwell changed the title add test for sorting synopsis within ArgGroup sorting synopsis within ArgGroup Jun 3, 2024
@remkop remkop added this to the 4.7.8 milestone May 5, 2026
@remkop
remkop merged commit a13d91c into remkop:main May 5, 2026
0 of 37 checks passed
remkop added a commit that referenced this pull request May 5, 2026
remkop added a commit that referenced this pull request May 5, 2026
@remkop remkop linked an issue May 9, 2026 that may be closed by this pull request
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.

Synopsis not alphabetical sort for ArgGroups

2 participants