info-gengetopt
[Top][All Lists]
Advanced

[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 2.0.0.6 (X11/20071022)

GNU Gengetopt 2.22 has been released.  It is available from
ftp://ftp.gnu.org/gnu/gengetopt/ and mirrors of that site (see list of
mirror sites at http://www.gnu.org/order/ftp.html).

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

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:
http://tronprog.blogspot.com/search/label/gengetopt.

Visit the Gengetopt home page at
http://www.gnu.org/software/gengetopt

Anonymous CVS access is available.  Please visit
http://savannah.gnu.org/projects/gengetopt/
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),
http://mail.gnu.org/mailman/listinfo/help-gengetopt
    * address@hidden , for receiving information about new
releases and features (read-only mailing list),
http://mail.gnu.org/mailman/listinfo/info-gengetopt

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.

cheers
        Lorenzo

--
Lorenzo Bettini, PhD in Computer Science, DSI, Univ. di Firenze
ICQ# lbetto, 16080134     (GNU/Linux User # 158233)
HOME: http://www.lorenzobettini.it MUSIC: http://www.purplesucker.com
BLOGS: http://tronprog.blogspot.com  http://longlivemusic.blogspot.com
http://www.gnu.org/software/src-highlite
http://www.gnu.org/software/gengetopt
http://www.gnu.org/software/gengen http://doublecpp.sourceforge.net













reply via email to

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