From: Henrik Ravn (henrik_at_[hidden])
Date: 2001-11-16 11:40:01
> It occurs to me that even in the simplest cases, the
> programmer probably needs to write the "usage" output which
> responds to --help or incorrect options. A truly easy-to-use
> interface would read and interpret the "usage" text, so that
> the programmer hardly needs to do anything else. I have no
> idea how feasible that is...
Perhaps it could be done via some form of xml-driven description...
Something along the lines of:
<option name="Verbose" match="v,verbose"
Descriptive text for the usage text goes here
<!-- etc etc -->
Now, if you just want to parse a few options and a file name, including
a full xml-parser may well be considered overkill, but perhaps an
xml->.hpp translation tool could do the trick?
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk