RPM Community Forums

Mailing List Message of <popt-devel>

Teaching POPT 2.0 about HTML/XML/YAML?

From: Jeff Johnson <n3npq@mac.com>
Date: Sat 05 Jun 2010 - 19:55:37 CEST
Message-id: <E6209F97-96F1-45F1-84C1-5CB7911EE456@mac.com>

Since --help is the the topic de jure ...

... adding a popt table processor callback to
transform --help spewage opaquely into whatever
form is desired, with some simple transforms
like HTML tables or DocBook XML markup or YAML
used for configuring persistent option default
settings, or the existing --help spewage, is likely useful.

Most --help display formats aren't /dev/tty these days ... its
more painful to do the /dev/tty plumbing than it is to just
pass along popt table entries to output methods.

Note that a opaque (*help_transform) pluggable callback
is what I propose ... no way do I want to see POPT start
acquiring heavyweight linkages like -lxml2/-lexpat/-lsyck/-lwhatever.

But almost certainly a reasonable API could be added so that
--help transforms, with some reasonably simple (like the existing
--help CLI display) transform vectors within -lpopt explicitly.

73 de Jeff
Received on Sat Jun 5 19:56:23 2010
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.