-
Notifications
You must be signed in to change notification settings - Fork 115
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
Add Option groups #486
Merged
Merged
Add Option groups #486
Commits on Jul 22, 2024
-
Add Parser groups, similar to Command groups
Adds the ability to group options together, similar to command groups. The parser groups semantics are: 1. Consecutive duplicate groups are merged. 2. Non-consecutive duplicate groups are __not__ merged. 3. Nested groups are concatenated together e.g. if "Group B" is parsed within "Group A", then B's options will render under "Group A.Group B". 1 and 2 is the same behavior as Command groups.
Configuration menu - View commit details
-
Copy full SHA for 2403294 - Browse repository at this point
Copy the full SHA 2403294View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8a41abe - Browse repository at this point
Copy the full SHA 8a41abeView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0e0e43a - Browse repository at this point
Copy the full SHA 0e0e43aView commit details -
Configuration menu - View commit details
-
Copy full SHA for c1c5037 - Browse repository at this point
Copy the full SHA c1c5037View commit details
Commits on Jul 23, 2024
-
The (<<+>>) operator was swapped for (<</>>) in c1bf93b to fix pcapriotti#360. This was mistakenly reverted when implementing the new rendering logic for option groups. This commit re-establishes the fix.
Configuration menu - View commit details
-
Copy full SHA for 6cc042b - Browse repository at this point
Copy the full SHA 6cc042bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 8e8032c - Browse repository at this point
Copy the full SHA 8e8032cView commit details
Commits on Aug 8, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 8214451 - Browse repository at this point
Copy the full SHA 8214451View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2f15b95 - Browse repository at this point
Copy the full SHA 2f15b95View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8fa2d94 - Browse repository at this point
Copy the full SHA 8fa2d94View commit details -
Fixup help text. Move worker function to where it's used. Remove Applicative do from test suite. Small tidies.
Configuration menu - View commit details
-
Copy full SHA for 441c7b4 - Browse repository at this point
Copy the full SHA 441c7b4View commit details
Commits on Aug 12, 2024
-
Handle parent groups without top-level options
It is possible that someone defines a "parent group" that only contains child group(s) i.e. it does not contain any top-level options. This is a problem, because the parent name will not be attached to any options, thus will not be printed. To fix this, we instead represent the Option Groups as a hierarchy list of group titles e.g. ["Parent 1", "Parent 2", "Child group"]. Then, when rendering, we keep track of which group titles have already been printed. If some group has parent titles that have not yet been printed, we prepend their titles to the normal output.
Configuration menu - View commit details
-
Copy full SHA for ff8525e - Browse repository at this point
Copy the full SHA ff8525eView commit details
Commits on Aug 14, 2024
-
Configuration menu - View commit details
-
Copy full SHA for db1f771 - Browse repository at this point
Copy the full SHA db1f771View commit details
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.