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

Steven Woody narkewoody at gmail.com
Fri Aug 14 08:22:49 CEST 2009

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?


Life is the only flaw in an otherwise perfect nonexistence
   -- Schopenhauer

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