ajalt / clikt

Multiplatform command line interface parsing for Kotlin
https://ajalt.github.io/clikt/
Apache License 2.0
2.51k stars 121 forks source link

Feature request: generation of man pages or AsciiDoc #487

Open kravemir opened 7 months ago

kravemir commented 7 months ago

I am exploring options for command line interfaces for Kotlin, and found this library.

One of my needs is an export to unix man pages or AsciiDoc files.


picocli supports this:

From picocli 4.2, the picocli-codegen module has a ManPageGenerator tool that can generate AsciiDoc documentation using the manpage doctype and manpage document structure. The generated AsciiDoc files can be converted to HTML, PDF and unix man pages with the wonderful asciidoctor tool.

And, the generation can even be made to be part of gradle build - example.


Is there something like that for Click?

ajalt commented 7 months ago

Clikt doesn't have anything like that currently, but it should be straight forward to implement a HelpFormatter that would print out whatever format you want.