Re: Gengetopt 2.21 enhancement suggestions

Andre Noll <[email protected]>
Newsgroups gmane.comp.gnu.gengetopt.general
Message-ID <[email protected]>
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

_______________________________________________
Help-gengetopt mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-gengetopt
signature.asc (application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQFHCyw9Wto1QDEAkw8RAvuYAKCQAWFJUAfdVBAuCkgXzS74CAkLcQCgpKM/
Pit/6JvhJypVzj3a0vOXV40=
=la85
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.