Re: OptionParser How to: prog [options] [arguments]

2009-08-15 Thread Steven Woody
Thanks for all you suggestions! -- http://mail.python.org/mailman/listinfo/python-list

Re: OptionParser How to: prog [options] [arguments]

2009-08-14 Thread Gabriel Genellina
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

Re: OptionParser How to: prog [options] [arguments]

2009-08-14 Thread Carl Banks
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

Re: OptionParser How to: prog [options] [arguments]

2009-08-14 Thread Javier Collado
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,

OptionParser How to: prog [options] [arguments]

2009-08-13 Thread 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 -r123 http://hello.world";. Can I do this using OptionParser? Thanks. -- Life is the only flaw in an otherwise perfect nonexistence --