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?
Extract the <cmd> yourself, and pass the remaining arguments (that is, sys.argv[2:]) to parser.parse_args()
-- Gabriel Genellina -- http://mail.python.org/mailman/listinfo/python-list