-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Closed
Labels
A-helpArea: documentation, including docs.rs, readme, examples, etc...Area: documentation, including docs.rs, readme, examples, etc...C-enhancementCategory: Raise on the bar on expectationsCategory: Raise on the bar on expectationsS-blockedStatus: Blocked on something else such as an RFC or other implementation work.Status: Blocked on something else such as an RFC or other implementation work.
Description
Maintainer notes:
- Blocked on [modular] Decouple help format from help generation #2914 for decoupling help information gathering from formatting
- help2man can be a source of inspiration for how to integrate this into a users process
I'd love to have support to generate a manpage. This would use a mechanism and infrastructure similar to #376. Additional functions to override or augment portions of the generated manpage could come later, but I think with relatively few additions this could become an incredibly useful mechanism.
- The manpage title should default to the
bin_namevalue. - The section should default to
1. - The
NAMEsection should default tobin_name \- about, whereaboutis the string set by.about. - The
SYNOPSISsection should contain the usage strings for the command and every subcommand. - The
DESCRIPTIONsection would need some new paragraph-style information provided (also usable as a more structured.before_help). - The "OPTIONS" section should document the flags and args for the top-level command.
- If the command has subcommands, a "SUBCOMMANDS" section should document each subcommand in a sub-section.
- The
AUTHORSsection should contain the author information, if provided. - The
SEE ALSOsection would need some new mechanism to populate it.
I'd be happy to help with manpage markup, once I see the details of the mechanism used in #376.
dashed, wdv4758h, mattgreen, trizinix, sharkdp and 51 morequininer, wdv4758h, kbknapp, casey, io12 and 16 moreXunjin, JoelMon and Virgiel
Metadata
Metadata
Assignees
Labels
A-helpArea: documentation, including docs.rs, readme, examples, etc...Area: documentation, including docs.rs, readme, examples, etc...C-enhancementCategory: Raise on the bar on expectationsCategory: Raise on the bar on expectationsS-blockedStatus: Blocked on something else such as an RFC or other implementation work.Status: Blocked on something else such as an RFC or other implementation work.