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

Add support groups of options and commands in the help #2328

Draft
wants to merge 4 commits into
base: develop
Choose a base branch
from

Conversation

shadowspawn
Copy link
Collaborator

@shadowspawn shadowspawn commented Feb 24, 2025

Problem

People would like to be able to group options and commands in the help, and a number of other libraries have support for this.

Requests:

Other libraries:

Previous exploration by me: #1908 #1910 #2176 #2248

Solution

Add low-level .helpGroup() on Option and Command, and higher-level .optionsGroup() and .commandsGroup() which can be used in chaining way to specify group title for following options/commands.

See the example file to see them in use.

ChangeLog

@shadowspawn shadowspawn marked this pull request as draft February 24, 2025 10:07
@shadowspawn shadowspawn changed the base branch from master to develop February 24, 2025 10:08
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.

1 participant