Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sorting synopsis within ArgGroup #2295

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

crotwell
Copy link
Contributor

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

@crotwell
Copy link
Contributor Author

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

@crotwell
Copy link
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
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.

None yet

1 participant