a newbie OptParse thread. Is there a way to catch all?

Jeff Epler jepler at unpythonic.net
Thu Jul 22 21:02:37 CEST 2004

Just check that 'args' is empty in the return from
    (options, args) = parser.parse_args()
"asdsa" would be in args, because it's not recognized as a part of any

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/python-list/attachments/20040722/86c1ac92/attachment.sig>

More information about the Python-list mailing list