-
-
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
Separate section for Positional Arguments in generated manpages #3579
Comments
What happens if put them in a "POSITION ARGUMENTS" Any thoughts @larswirzenius or @sondr3 about what we should be doing generally? Putting them in a separate section would match with |
Unfortunately, I don't think that works at the moment. |
Right, looks like we don't support help headings, thats discussed in #3363 |
Found where this was discussed in the #3174 (comment) epage:
|
Thanks for linking previous discussions about this. I have been using curl and ripgrep as a reference but didn't look into other programs that have positional args.
By the way, isn't git's positional args the same as clap's subcommands? If that is the case, then |
From a long-time man page mass consumer point of view, putting positional arguments into their own section would be unusual, and as such would make the man page different from other man pages. It might be better, of course, but for someone who uses man pages as a quick reference, any unusual structure makes it harder to find what I want quickly. A subsection would make more sense. However, as a personal opinion, I would structure the command line argument structure so that there are very few different kinds of positional arguments. For grep, a pattern and filenames are needed, but I don't think that warrants its own section, or even subsection. |
If you run |
Oh, I see. Now that I know |
I wouldn't say its a requirement to follow git but that we are looking to prior art to help guide what the man generation should look like and git is a good example because it both gets a lot of attention and is complex enough to have examples of anything we come across. |
Please complete the following tasks
Clap Version
3.1.0
Describe your use case
N/A
Describe the solution you'd like
I would like
clap_mangen
to group positional arguments into their own section.Alternatives, if applicable
Because
clap_mangen
allows rendering sections as needed, I can copy code fromclap_mangen
and customise it as neededAdditional Context
N/A
The text was updated successfully, but these errors were encountered: