> Someone else has done this already. *grin* Check out ESR's
> doclifter:
>
> http://www.catb.org/~esr/doclifter/
Looks like that gets you to XML format, in that case I'd recommend
that you go fetch ElementTree and use that to parse the XML files.
Alan G.
> to be able to retrieve informations from man pages, specially
> existing
> options and their help strings.
I'd actually try parsing the man page sources. They are already in
a layout language so finding the options should be easy - there is
a man macro for that I believe. But i've never tried i
> to be able to retrieve informations from man pages, specially existing
> options and their help strings. Do you know a good way to handle this? I
> could parse directly the troff sources (is there already a parser for that?)
Hi Tiago,
Someone else has done this already. *grin* Check out ESR's
Hi!
I'm working on a front-end to various unix command-line utilities, and I want
to be able to retrieve informations from man pages, specially existing
options and their help strings. Do you know a good way to handle this? I
could parse directly the troff sources (is there already a parser for