This already exists: https://man.archlinux.org/man/extra/help2man/help2man.1.en
It does expect quite particular format for --help though iirc if you want a good result. It predates the AI craze by a good 20 years, so it reliably either works or doesn't.