[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

GNU Gengetopt 2.22

From: Lorenzo Bettini
Subject: GNU Gengetopt 2.22
Date: Sun, 13 Jan 2008 17:09:02 +0100
User-agent: Thunderbird (X11/20071022)

GNU Gengetopt 2.22 has been released.  It is available from and mirrors of that site (see list of
mirror sites at

GNU Gengetopt generates a C function that uses getopt_long function
to parse the command line options, validate them and fill a

Version 2.22

   * avoid test suite if crosscompiling
   * generated code is averagely less verbose
* generate a function to save the command line options into an open stream
     (thanks to Papp Gyozo).
   * given fields are unsigned also for non multiple options
   * removed compilation warnings for generated code when using
     -Wstrict-prototypes (thanks to Andre Noll)
   * added print_errors parameters to pass to generated parser function to
     suppress getopt_long message printing (thanks to J. David Bryan)
* if h is specified as a short option, then --help is still automatically generated, the same holds for --version and v (thanks to J. David Bryan)
   * initializing of the structure for parser function parameters
     was changed in order to initialize the fields to their default values
     (instead of 0)
* list of acceptable values for options can be have a type different from
     string and can have type enum (that will generate a C enum)
     (as suggested by Gyozo Papp)
   * usage string is printed only if not empty (as suggested by Gyozo Papp)
   * in case of hidden options, the generated help string array reuses the
     strings of the full help array (as suggested by Gyozo Papp)
* the _help field for options is correctly generated even in the presence
     of additional text before and after an option and also groups
   * for an option one can specify the "details" which will be printed in
     case --detailed-help is specified
   * mode options: if an option of a mode is given no option of another
     mode can be specified (mutually exclusive groups of options)
   * can use ? as short option
   * --no-help, --no-version: don't add --help and --version automatically
     (the user can specify those options manually)
   * fixed a bug in generation of multiple options of type longlong

You can also find details about new features on my blog, in this area:

Visit the Gengetopt home page at

Anonymous CVS access is available.  Please visit
where you can find detailed descriptions of how to access the CVS
(read-only).  Release-candidate versions are available
through CVS.

Bug reports should go to address@hidden

The following mailing lists are available:

    * address@hidden, for generic discussions about the program
and for asking for help about it (open mailing list),
    * address@hidden , for receiving information about new
releases and features (read-only mailing list),

if you want to subscribe to a mailing list just go to the URL and follow
the instructions or just send me an e-mail.


Lorenzo Bettini, PhD in Computer Science, DSI, Univ. di Firenze
ICQ# lbetto, 16080134     (GNU/Linux User # 158233)

reply via email to

[Prev in Thread] Current Thread [Next in Thread]