[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [help-gengetopt] Gengetopt 2.21 enhancement suggestions
From: |
Andre Noll |
Subject: |
Re: [help-gengetopt] Gengetopt 2.21 enhancement suggestions |
Date: |
Tue, 9 Oct 2007 09:22:37 +0200 |
User-agent: |
Mutt/1.5.9i |
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.
Andre
--
The only person who always got his work done by Friday was Robinson Crusoe
signature.asc
Description: Digital signature
Re: [help-gengetopt] Gengetopt 2.21 enhancement suggestions, Lorenzo Bettini, 2007/10/15