help2man

Produce simple man pages from an executable's --help and --version output. More information: https://www.gnu.org/software/help2man.

help2man executable

help2man executable --name name

help2man executable --section section

help2man executable --output path/to/file

help2man --help