paul j3 added the comment: Correction: The patch I gave in the last message produces:
>>> parser.parse_known_args(['-ku']) (Namespace(known=False), ['u']) It doesn't take action on the '-k', and puts 'u' in extras, not '-u'. This new patch gets it right: >>> parser.parse_known_args(['-ku']) (Namespace(known=True), ['-u']) We need more test cases, including ones that work as expected with optparse or other unix parsers. ---------- Added file: http://bugs.python.org/file30056/dashku.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue16142> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com