help2man

Automatically generate man pages from program help text

brewmacoslinux
Try with needOr install directly
Source

About

Automatically generate simple man pages

Commands

help2man

Examples

Generate a man page for a simple command$ help2man ls > ls.1
Create man page with custom section and output to standard location$ help2man --section=1 --output=/usr/local/man/man1/myapp.1 myapp
Generate man page including author and version information$ help2man --author='John Doe' --version-string='1.0' mycommand > mycommand.1