Re: Positional arguments parsing

Robert Collins <[email protected]> Sun, 23 Apr 2006 18:01:37 +1000
Newsgroups gmane.comp.python.optik.user
Message-ID <[email protected]>
--=-0pFQaQ5sRgvu+blT3znx
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

On Sat, 2006-04-22 at 22:38 -0400, Greg Ward wrote:
> On 22 April 2006, Diogo Kollross said:
> > I've made a module for positional arguments parsing, based on optparse:
> >=20
> >   http://geocities.com/diogok_br/posparse/
>=20
> Cool!
>=20
> > I wonder if a similar feature is planned for Optik.
>=20
> Yeah, every so often I wish Optik did this.  Have never really sat down
> and figured out the right design, though.  I took a quick look at what
> you have done, and I think I would prefer something more tightly
> integrated into OptionParser -- I'd like to do option parsing and
> positional arg parsing with single parse_args() call.  (After all, it's
> parse_args(), not parse_opts()!)
>=20
> I'll go read your code carefully, but *not* until I have checked Optik
> 1.5.1 into Python's svn tree to get into 2.5a2!

I have my patch for this around still, which does a typed grammer for
the arguments, so position arguments are a trivial use case for it.

Rob

--=20
GPG key available at: <http://www.robertcollins.net/keys.txt>.

--=-0pFQaQ5sRgvu+blT3znx
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)

iD8DBQBESzRhM4BfeEKYx2ERAiX7AJ922omfXHNhYrA9LXDVJr7uCPp5RACeI+e2
HO5ww+hXK3eOltAEatUykN4=
=0bSE
-----END PGP SIGNATURE-----

--=-0pFQaQ5sRgvu+blT3znx--



-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642