-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Show usage of subcommand in global help #962
Comments
Thanks for the suggestion and all the details! 👍 This feature doesn't exist (yet) could be added as an Since I'm actively working on 3x I think this is something I'll try to add then, because the code clean ups I've done so far would make this far easier to implement, and/or people to contribute to. However, if someone wants this done immediately I'd be willing to assist in mentoring or answering questions on how this could be done. |
Thanks for the reply.
|
I'm going to close this for the time being, but may re-address it once 3.x is out |
Leaving it closed for the time being |
Has there been any update on this? I see the issue has been re-opened, but there doesn't seem to be any follow-up that I can see. |
No updates. A lot of our focus right now is in other areas like API clean up, shrinking binary size, fixing bugs, etc. I am curious if the solution proposed in #1334 might be a viable alternative to meet the same needs. If we can find more common solutions to problems, it can help us meet our goal of keeping binary sizes and compile times down,. |
I lean in favor of #1334 instead and am closing in favor of that as usually someone is either caring about one command at a time or with them flattened and the build-time / binary size cost of supporting both wouldn't be great. If people make the case for this being needed, I'm ok with re-opening this. |
I don't know if this feature exists, if so, I have not found it yet. What I'm looking for is a way to see the usage of a subcommand in the help shown by the
help
subcommand or the global--help
flag. Compare the actual behavior to the expected behavior for an example.Rust Version
rustc 1.17.0 (56124baa9 2017-04-24)
Affected Version of clap
2.24.1
Actual Behavior Summary
The
SUBCOMMANDS:
section only shows the subcommands that exist, not what parameters they require.One has to ask for the specific help:
Expected Behavior Summary
Instead of having to look at every individual help output, the
SUBCOMMANDS:
section shows theUSAGE:
section of the subcommands.Sample Code
Debug output
I can supply this at a later time if required.
The text was updated successfully, but these errors were encountered: