[Python-Dev] PEP 389: argparse - new command line parsing module

Greg Ewing greg.ewing at canterbury.ac.nz
Wed Sep 30 02:38:26 CEST 2009


Paul Moore wrote:
> I'd rather argparse (or any library function)
> didn't call sys.exit on my behalf - it should raise an exception.

Actually, sys.exit() *does* raise an exception (i.e.
SystemExit) that you can catch if you want.

-- 
Greg


More information about the Python-Dev mailing list