Author xuanji
Recipients bethard, docs@python, eric.araujo, jayt, tanqazx, xuanji
Date 2011-04-27.10:24:25
SpamBayes Score 6.52278e-11
Marked as misclassified No
Message-id <>
I don't think it's best to create a new subclass to throw an ArgumentParserExit exception; if I read the stack trace I'd see that an ArgumentError was thrown, then caught, then an ArgumentParserExit was thrown, which IMHO is confusing. In the current design, parse_known_errors catches an ArgumentError and then exits. I propose that the user be optionally allowed to turn off the handling of ArgumentError and to handle it himself instead through an exit_on_argument_error flag. 

Attached patch does this. Also I think this issue falls under component 'Lib' too.
Date User Action Args
2011-04-27 10:24:27xuanjisetrecipients: + xuanji, bethard, eric.araujo, docs@python, jayt, tanqazx
2011-04-27 10:24:27xuanjisetmessageid: <>
2011-04-27 10:24:26xuanjilinkissue9938 messages
2011-04-27 10:24:26xuanjicreate