OptionParser How to: prog <cmd> [options] [arguments]

Steven Woody narkewoody at gmail.com
Fri Aug 14 02:22:49 EDT 2009


Hi,
I am using OptionParser, but I've not managed figure out a way to support
what I wanted command line format "prog <cmd> [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
   -- Schopenhauer

narke
public key at http://subkeys.pgp.net:11371 (narkewoody at gmail.com)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20090814/2780b3ea/attachment.html>


More information about the Python-list mailing list