HTML help for command line utilities

I’ve been working with GNU gettext utilities today to let a project I’m working on support multiple laguanges. Having originated in the Unix world Gettext is comprised of a lot of command line utilities that should be chained together to produce the desired result.

I found myself running ‘gettext –help’ and the like quite a lot and thought it would be nice to have all of those help messages in a nice HTML file to work with.

It didn’t take a long time to write this Python script that I’m sharing here that runs all the EXE files in a directory with the ‘–help’ command line option and gathers the output in an HTML file.

You can get the script here.

You can see examples of what it generates here and here.

Comments are closed.