Thanks for all you suggestions!
--
http://mail.python.org/mailman/listinfo/python-list
En Fri, 14 Aug 2009 03:22:49 -0300, Steven Woody
escribió:
I am using OptionParser, but I've not managed figure out a way to support
what I wanted command line format "prog [options] [arguments]".
E.g., "svn ls -r123 http://hello.world";. Can I do this using
OptionParser?
Extract the
On Aug 14, 12:18 am, Javier Collado wrote:
> 2009/8/14 Steven Woody :
>
> > Hi,
> > I am using OptionParser, but I've not managed figure out a way to support
> > what I wanted command line format "prog [options] [arguments]".
> > E.g., "svn ls -r123http://hello.world";. Can I do this using Opti
Hello,
I think that this isn't possible with optparse library.
However, it's possible with argparse (http://code.google.com/p/argparse/):
http://argparse.googlecode.com/svn/trunk/doc/other-methods.html#sub-commands
It's not a standard library, but it's worth to take a look at it.
Best regards,
Hi,
I am using OptionParser, but I've not managed figure out a way to support
what I wanted command line format "prog [options] [arguments]".
E.g., "svn ls -r123 http://hello.world";. Can I do this using OptionParser?
Thanks.
--
Life is the only flaw in an otherwise perfect nonexistence
--