Skip to content
This repository has been archived by the owner on Jan 1, 2022. It is now read-only.

[modular] Decouple help format from help generation #227

Open
2 tasks done
epage opened this issue Dec 6, 2021 · 0 comments
Open
2 tasks done

[modular] Decouple help format from help generation #227

epage opened this issue Dec 6, 2021 · 0 comments

Comments

@epage
Copy link
Owner

epage commented Dec 6, 2021

Issue by epage
Tuesday Oct 19, 2021 at 15:40 GMT
Originally opened as clap-rs/clap#2914


Please complete the following tasks

  • I have searched the discussions
  • I have searched the existing issues

Clap Version

master

Describe your use case

Building on #2913, we can decouple help generation from help formatting, which would allow us to reuse it for manpage generation or for code-gen of help output to avoid doing help generation at runtime, allowing users to reduce bloat.

Describe the solution you'd like

Refactor clap_help to accept an impl HelpBuilder which we can tell pass it parts of the help output and the impl is responsible for formatting for the target (terminal, man page, pre-proc for code-gen, etc)

Alternatives, if applicable

No response

Additional Context

No response

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant