Is there a tool that generates C/C++ source code from XML (or something similar) to create command line argument parsing functionality?Now a longer explanation of the question:I have up til now used gengetopt for command line argument parsing. It is a nice tool that generates C source code from its own configuration format (a text file). For instance the gengetopt configuration line\[code\]option "max-threads" m "max number of threads" int default="1" optional\[/code\]among other things generates a variable\[code\]int max_threads_arg; \[/code\]that I later can use.But gengetopt doesn't provide me with this functionality:
- A way to generate Unix man pages from the gengetopt configuration format
- A way to generate DocBook or HTML documentation from the gengetopt configuration format
- A way to reuse C/C++ source code and to reuse gengetopt configuration lines when I have multiple programs that share some common command line options