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

feat(help): add ShowSubcommandHelpAndExit #1183

Open
wants to merge 1 commit into
base: master
from

Conversation

@knqyf263
Copy link

knqyf263 commented Sep 8, 2020

What type of PR is this?

  • bug
  • cleanup
  • documentation
  • feature

What this PR does / why we need it:

  • Add ShowSubcommandHelpAndExit to help.go
  • It is also useful like ShowCommandHelpAndExit and ShowAppHelpAndExit

Which issue(s) this PR fixes:

Fixes #1112

Special notes for your reviewer:

I didn't find any test for XXXHelpAndExit.

Testing

I prepared a sample program.

Release Notes

Added ShowSubcommandHelpAndExit to print help for the given subcommand and exit with exit code.
@knqyf263 knqyf263 requested a review from urfave/cli as a code owner Sep 8, 2020
@knqyf263 knqyf263 requested review from rliebz and asahasrabuddhe and removed request for urfave/cli Sep 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

1 participant
You can’t perform that action at this time.