8000 Use the custom help template in ShowSubcommand by adrian-thurston · Pull Request #2164 · urfave/cli · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Use the custom help template in ShowSubcommand #2164

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

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

Conversation

adrian-thurston
Copy link
@adrian-thurston adrian-thurston commented Jun 25, 2025

What type of PR is this?

  • bug

What this PR does / why we need it:

The custom help template was not getting used in subcommand help. This is called when using HideHelpCommand. Updated ShowSubcommand to use the custom template.

It's possible a minor refactor in the help display cases is needed here, but this change fixes our immediate problem.

Which issue(s) this PR fixes:

No known issue, just discovered locally.

Special notes for your reviewer:

None.

Testing

Test case for the bug added.

Release Notes

Bug fix: use the custom help template in a subcommand when in HideHelpCommand is active

The custom help template was not getting used in subcommand help. This is
called when using HideHelpCommand. Updated ShowSubcommand to use the custom
template.

It's possible a minor refactor in the help display cases is needed here, but
this change fixes our immediate problem.
@adrian-thurston adrian-thurston requested a review from a team as a code owner June 25, 2025 18:18
@adrian-thurston adrian-thurston changed the title Fix/custom help for subcommand Use the custom help template in ShowSubcommand Jun 25, 2025
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
0