[Python-Dev] PEP 389: argparse - new command line parsing module (original) (raw)
Greg Ewing greg.ewing at canterbury.ac.nz
Wed Sep 30 02:38:26 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 ]
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
- 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 ]