Re: multiple default values not possible it seems
Lorenzo Bettini <[email protected]> Mon, 14 Dec 2009 13:58:31 +0100
| Newsgroups | gmane.comp.gnu.gengetopt.general |
|---|---|
| Message-ID | <[email protected]> |
Hi Erik sorry for the delay of my answer; I'll try to look at this issue as soon as possible. Note, however, that the syntax would be default="2.0","2.0" and not default="2.0,2.0" cheers Lorenzo Erik Sjölund wrote: > Multiple default values are not supported it seems. If you for instance > specify > > option "weights" w "some text" typestr="FLOAT,FLOAT" float > default="2.0,2.0" optional multiple(2) > > I get "invalid default value". > > I would be nice if that could be supported. If not I would suggest > adding some more documentation, for instance like > the attached patch. > > cheers, > Erik Sjölund > > > esjolund@csbl05:/tmp$ ~/gengetopt/inst/bin/gengetopt -V > GNU gengetopt 2.22.2 > Copyright (C) 1999-2009 Free Software Foundation Inc. > This program comes with ABSOLUTELY NO WARRANTY; for details > please see the file 'COPYING' supplied with the source code. > This is free software, and you are welcome to redistribute it > under certain conditions; again, see 'COPYING' for details. > This program is released under the GNU General Public License. > esjolund@csbl05:/tmp$ cat a.ggo > package "reconcile" > version "0.9.0" > purpose "What this program does" > option "weights" w "some text" typestr="FLOAT,FLOAT" float > default="2.0,2.0" optional multiple(2) > > esjolund@csbl05:/tmp$ ~/gengetopt/inst/bin/gengetopt -i a.ggo > a.ggo:4: invalid default value > > > ------------------------------------------------------------------------ > > _______________________________________________ > Help-gengetopt mailing list > [email protected] > http://lists.gnu.org/mailman/listinfo/help-gengetopt -- Lorenzo Bettini, PhD in Computer Science, DI, Univ. Torino ICQ# lbetto, 16080134 (GNU/Linux User # 158233) HOME: http://www.lorenzobettini.it MUSIC: http://www.purplesucker.com http://www.myspace.com/supertrouperabba 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