Re: Gengetopt 2.21 enhancement suggestions

Lorenzo Bettini <[email protected]> Mon, 15 Oct 2007 14:50:42 +0200
Newsgroups gmane.comp.gnu.gengetopt.general
Message-ID <[email protected]>
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