elastic / quark

https://elastic.github.io/quark/index.html
Other
14 stars 2 forks source link

Embed manpages into the binaries #93

Closed haesbaert closed 2 weeks ago

haesbaert commented 2 weeks ago

With this invoking one of the utilities with -h will display the manpage.

Since quark is not a "system utility", we can't expect people to go to the trouble of installing manpages, and typing man ./quark-mon.8 is a pain. It's also likely that the binary is sent somewhere and thus the man relationship was lost.

I had to write a mini-utility to embed the manpage, it's a bit sad that there isn't a mandoc -T c to export the manpage as a C struct.

haesbaert commented 2 weeks ago

Oh this breaks the arm64 cross compilation, I'll work on a fix