help-gengetopt
[Top][All Lists]
Advanced

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

Re: [help-gengetopt] restricting an array to 3 args


From: Lorenzo Bettini
Subject: Re: [help-gengetopt] restricting an array to 3 args
Date: Wed, 28 Dec 2005 18:10:25 +0100
User-agent: Debian Thunderbird 1.0.7 (X11/20051017)

BuildSmart wrote:
I wish to first thank the authors of gengetopt for such a lovely peice of work as it has saved me countless hours of programming.

very glad to hear that! :-D

I'm trying to set the default values for an int array and to establish that it requires 3 args.

so you need a multiple option but with a fixed number of values, am I right?

And the possibility of specifying the default value for each of these elements.

If so, there's no support for that now, but I can work on that.

The issue now is ensuring that 3 values are passed from the command line or config file and if the value is < or > 3 complain about it.

Lorenzo

--
+-----------------------------------------------------+
|  Lorenzo Bettini          ICQ# lbetto, 16080134     |
|  PhD in Computer Science                            |
|  Dip. Sistemi e Informatica, Univ. di Firenze       |
|  Florence - Italy        (GNU/Linux User # 158233)  |
|  Home Page        : http://www.lorenzobettini.it    |
|  http://music.dsi.unifi.it         XKlaim language  |
|  http://www.purplesucker.com Deep 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]