help-gengetopt
[Top][All Lists]
Advanced

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

Re: [help-gengetopt] RE: GNU Gengetopt 2.12.2 enum and its fellows...


From: Lorenzo Bettini
Subject: Re: [help-gengetopt] RE: GNU Gengetopt 2.12.2 enum and its fellows...
Date: Thu, 28 Oct 2004 14:52:51 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.3) Gecko/20040929

Gyozo, PAPP (VBuster) wrote:
Hi there,

I took some time to test enum types in gengetopt. I have found these 
limitations in the current implementation (2.13rc1):

1.) enum option-argument is checked by check_possible_values() before this 
could be splitted up around commas if it is a multiple option. This results 
that multiple options with arguments must be given repeatedly and cannot be 
gathered like this:

        --multiple=arg1,arg2,arg3


Hi

you're right! :-)

here's the fixed version

http://rap.dsi.unifi.it/~bettini/gengetopt-2.13rc2.tar.gz

2.) enum type does not take "typestr" in the .ggo file.


it actually does:

option "multistring-values-no-short" - "multiple string option with values no-short" typestr="BAR" values="foo","bar" no multiple

groupoption "string-values-group" - "group string option with values and default" typestr="FOO" values="foo","bar","foobar","barfoo" default="bar" group="group1"

--
+-----------------------------------------------------+
|  Lorenzo Bettini          ICQ# lbetto, 16080134     |
|  PhD in Computer Science                            |
|  Dip. Sistemi e Informatica, Univ. di Firenze       |
|  Tel +39 055 4796741, Fax +39 055 4796730           |
|  Florence - Italy        (GNU/Linux User # 158233)  |
|  Home Page        : http://www.lorenzobettini.it    |
|  http://music.dsi.unifi.it         XKlaim language  |
|  http://www.lorenzobettini.it/purple    Cover Band  |
|  http://www.gnu.org/software/src-highlite           |
|  http://www.gnu.org/software/gengetopt              |
|  http://www.lorenzobettini.it/software/gengen       |
|  http://www.lorenzobettini.it/software/doublecpp    |
+-----------------------------------------------------+





reply via email to

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