[Python-Dev] PEP 389: argparse - new command line parsing module (original) (raw)
Paul Moore p.f.moore at gmail.com
Wed Sep 30 11:03:15 CEST 2009
- Previous message: [Python-Dev] PEP 389: argparse - new command line parsing module
- Next message: [Python-Dev] PEP 389: argparse - new command line parsing module
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
2009/9/30 Greg Ewing <greg.ewing at canterbury.ac.nz>:
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.
That's a good point... Paul
- Previous message: [Python-Dev] PEP 389: argparse - new command line parsing module
- Next message: [Python-Dev] PEP 389: argparse - new command line parsing module
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]