help-gengetopt
[Top][All Lists]
Advanced

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

Re: [help-gengetopt] Gengetopt 2.21 enhancement suggestions


From: Lorenzo Bettini
Subject: Re: [help-gengetopt] Gengetopt 2.21 enhancement suggestions
Date: Mon, 15 Oct 2007 14:50:42 +0200
User-agent: Mozilla-Thunderbird 2.0.0.4 (X11/20070828)

Andre Noll wrote:
On 16:15, J. David Bryan wrote:

    What would be more flexible would be to allow "argtype" to be
    specified in addition to "values=".  So if we had:

      option "rotate" r "Rotate clockwise" int values="0","90","180","270"

    ...then the return value would be one of the four integers converted
    from a string.

Yes, that'd be nice. Ranges would probably also be quite useful:

        option "rotate" r "Rotate clockwise" int range="0..360"

Of course, gengetopt should check whether the given integer is in the allowed 
range.


Hi,

of course range makes sense only for integers right?

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
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




reply via email to

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