-
-
Notifications
You must be signed in to change notification settings - Fork 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
Issue 416 - Help subcommand accepts other subcommands as arguments #450
Conversation
… help subcommand The `help` subcommand can now accept other subcommands as arguments to display their help message. This is similar to how many other CLIs already perform. For example: ``` $ myprog help mysubcmd ``` Would print the help message for `mysubcmd`. But even more, the `help` subcommand accepts nested subcommands as well, i.e. a grandchild subcommand such as ``` $ myprog help child grandchild ``` Would print the help message of `grandchild` where `grandchild` is a subcommand of `child` and `child` is a subcommand of `myprog`. Closes #416
r? @Vinatorul (yo-bot has picked a reviewer for you, use r? to override) |
@homu r+ |
📌 Commit babfd26 has been approved by |
☀️ Test successful - status |
@crumblingstatue It should wrap nicely at term width (which is not necessarily 80) unless running it in Windows. However, I also think it should be shorter. how about:
|
@sru yeah we can shorten it to that wording and I'm fine with that since I think it's a little long too. @crumblingstatue if you're not disabling the default cargo features or running Windows it should wrap at the term width...although I think adding a setting to wrap at a specified width regardless would be great too. I'll add a new issue to track that once I get home if someone hasn't already done it. |
Merge after #449
Closes #416