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 methods for formatOptions and formatCommands in Help, with example of option help groups #2248

Conversation

shadowspawn
Copy link
Collaborator

I am still thinking about help groups for options and commands per #1897. Still not happy I have a solid enough API to make it part of Commander.

This is a proof of concept of a refactor to make it easier for author to add their own support for help groups. Split out format of options and commands so author does not need to override whole of formatHelp. Show example of adding help groups for options in subclass.

Other help group experiments: #1908 #1910 #2176

@shadowspawn
Copy link
Collaborator Author

The Help class is changing a bit in next major version of Commander so will close this as going to be out of date.

I think the grouping should probably be done by a different method than .configureHelp(), since that is usually for changes affecting all help including subcommands.

(Still thinking about grouping!)

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