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 example of displaying custom usage in subcommand list #1896

Merged
merged 2 commits into from
Jun 26, 2023

Conversation

shadowspawn
Copy link
Collaborator

Pull Request

Problem

People who define custom usage for their subcommands are likely to want to display them in the list of subcommands.

See: #1853 #1885

Solution

Add an example file which shows how to use custom usage in the list of subcommands.

Copy link
Collaborator

@abetomo abetomo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@shadowspawn shadowspawn changed the base branch from master to develop June 26, 2023 09:18
@shadowspawn shadowspawn added the pending release Merged into a branch for a future release, but not released yet label Jun 26, 2023
@shadowspawn shadowspawn merged commit 7fe7831 into tj:develop Jun 26, 2023
@shadowspawn shadowspawn deleted the feature/subcommand-help-example branch June 26, 2023 09:19
@shadowspawn
Copy link
Collaborator Author

Example added in Commander v11.1.0

@shadowspawn shadowspawn removed the pending release Merged into a branch for a future release, but not released yet label Feb 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.

2 participants