Genparse can now optionally use the GNU Compatibility Library (Gnulib,
see http://www.gnu.org/software/gnulib/. If you want to use it the
new command line switch -g / --gnulib enables it.
If it is set then 5 new types are supported: long int, unsigned long int,
intmax_t, uintmax_t (both defined in Gnulib) and double.
Genparse now supports parameters with optional arguments.
Genparse no longer generates any code which allocates memory on the heap, i.e. no calls to malloc(), strdup() et al.
Unfortunately this implies that the parser function is changed for the C output. It receives a pointer to an arg_t struct now instead of passing such a struct as the return value. So the parser function changed from
struct arg_t *Cmdline(int argc, char *argv[])
to
void Cmdline(struct arg_t *my_args, int argc, char *argv[]). ... read more
The project homepage at http://genparse.sourceforge.net/ has been updated. The examples are now demonstrated at http://genparse.sourceforge.net/examples.html.
html versions of the info and man pages and a pdf version of the info pages have been added to the latest release.
In order to configure the help screen which will be printed when the user specifies a wrong command line argument or gives the --help option add your own #usage section to the genparse file. See updated info or man page for more details.
Genparse now also generates Java output. Invoke with -l java.
Genparse now uses a cppunit (http://sourceforge.net/projects/cppunit) test in version 0.5.4 (just released).
Compiles with version 3 of the C++ standard library.
Adds a man page.
Testers are wanted for Genparse, a command-line parser generator. If you have a project that requires a modest number of command line options or switches, Genparse can make your life easier. Currently we support both C and C++. Current release is 0.4, and has not been subjected to rigorous testing. Downloadable tarball and manual found at http://genparse.sourceforge.net