Re: Implementing variable number of option arguments
Robert Collins <[email protected]> Fri, 05 Nov 2004 14:29:49 +1100
| Newsgroups | gmane.comp.python.optik.user |
|---|---|
| Message-ID | <1099625389.20133.91.camel@localhost> |
--=-yW45AO1sXrrvrcA6cwSz Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Thu, 2004-11-04 at 21:55 -0500, Greg Ward wrote: > I had an idea the other night on how to implement options with optional > arguments in Optik. Actually, it's more general than that: options with > a variable number of arguments. The neat thing is, this could kill not > one, not two, but *three* birds with one stone: >=20 > * optional option arguments >=20 > * checking positional args for type and number (after option > parsing is complete) >=20 > * allowing variable types when nargs > 1 Erm, FWIW 2 is in my arch branch that I've posted about before, fully complete, and would give 1 and 3 easily if the code was migrated to the same framework. Rob --=20 GPG key available at: <http://www.robertcollins.net/keys.txt>. --=-yW45AO1sXrrvrcA6cwSz Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.5 (GNU/Linux) iD8DBQBBivOtM4BfeEKYx2ERAmUYAKCUvTCe/C/+zCfSm5smG5Unn6uq3wCbBP5v yicKoqtESdAjdn+MK2aopJg= =Cg+Z -----END PGP SIGNATURE----- --=-yW45AO1sXrrvrcA6cwSz-- ------------------------------------------------------- This SF.Net email is sponsored by: Sybase ASE Linux Express Edition - download now for FREE LinuxWorld Reader's Choice Award Winner for best database on Linux. http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click