helpm4sh - extract embedded HelpMessage/POD from sh scripts
helpm4sh format[-] [files]
helpm4sh extracts constant help messages from the given files, or from standard input if no files is given. If format is helpm, embedded HelpMessage blocks are extracted. The blocks can be either here documents starting by a line matching the regular expression << *"_*(HELPM|HelpM|helpm)(essage)?"$
, or be similar here documents in comments.
If format is pod, then here documents (or here documents in comments) delimited by "=cut" are extracted.
If a dash a appended to format, then the here documents are stripped.
This manual page can be extracted from the script itself:
$ helpm4sh helpm $(where helpm4sh) | helpm2man
helpm4sh was written by G.raud Meyer.
helpmessage(5), perlpod(1)