Skip to content

Improve parsing and formatting inside after_help #6087

@Agent-Hellboy

Description

@Agent-Hellboy

Please complete the following tasks

Clap Version

master

Describe your use case

Hi , I am coming from uutils/coreutils#8362
clap_mangen is outputting after_help content as plain text, causing list items to appear inline instead of properly formatted.
https://github.com/clap-rs/clap/blob/583ba4ad9a4aea71e5b852b142715acaeaaaa050/clap_mangen/src/render.rs#L248C15-L248C25

Describe the solution you'd like

Fix suggestions to discuss

  • Parse list items (lines starting with - )
  • Extract options and descriptions
  • Use proper roff formatting (.TP, .B, .I)

I will add a PR.

Alternatives, if applicable

No response

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-manArea: man generatorC-enhancementCategory: Raise on the bar on expectationsS-waiting-on-designStatus: Waiting on user-facing design to be resolved before implementing

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions