-
-
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
Add -r, --recursive
flags to help command
#4813
Comments
Know of any precedence in any applications? How would you expect the output from the commands to be delineated? Just concatenating one output after another? Dividers? In what way would this act like a man page? Most man pages I've seen are either like I'll be upfront that I lean more in favor of #1334 rather than this. Another element is I have been considering trying to allow arguments to be ignored so you can insert a |
The Ocaml one looks like this: https://github.com/facebook/infer/blob/main/sledge/sledge-help.txt
I mean it in the sense that you get all the information at once.
I'm not sure these two ideas are mutually exclusive. This one is nicer in the sense that you don't force users to see the entire CLI unless they want to.
This workflow appears to be centered around appending |
At least in a text document, the OCaml version looks hard to read. The dividers don't really stand out for the different levels of the document and that requires a lot of scrolling / scanning to find the appropriate section. I feel like if we did this, it would be blocked on #4201 to ensure we had a good experience for the users. Yes, users can manually pipe but then they lose all styling and have to go through extra hoops (env variables for clap, flags to less) for it to work
As I said, most man pages I've looked at don't show you everything at once.
You can just as easily substitute |
Right, and I don't think that's a solvable problem since you have to render things in your head. For output in a terminal, maybe colors could be used or the font size could be changed? (not sure if that's a thing) Pagination sounds reasonable.
Bad example then, no need to fixate on it.
You're thinking |
Whats odd about it? Its supported today. |
Hmmm, I don't think we're talking about the same thing. |
|
Gotya, didn't know that was a thing. Then I'm not sure how these features could interact. Maybe the recursive flag could only work for the root help, but that still might conflict. |
Please complete the following tasks
Clap Version
master
Describe your use case
./binary help -r
will print the help of every subcommand recursively. This fixes #3934 and kind of acts like a man page.The text was updated successfully, but these errors were encountered: