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

How to explicitly print subcommand help #76

Open
kahunacohen opened this issue Nov 10, 2021 · 2 comments
Open

How to explicitly print subcommand help #76

kahunacohen opened this issue Nov 10, 2021 · 2 comments
Labels
enhancement New feature or request

Comments

@kahunacohen
Copy link

How do I explicitly print out a subcommand's help text (usage)?

@craftyguy
Copy link

this works for me:

$ foo bar -h

where bar is the subcommand

@integrii
Copy link
Owner

Currently you can show help on a flaggy.Parser, but not a flaggy.Subcommand. I agree that it would be nice to call help on a flaggy.Subcommand directly, but it would take a little re-factoring to prevent duplicate code... Right now this is done via a template rendering that happens on the Parser...

@integrii integrii added the enhancement New feature or request label Apr 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants