New submission from R. David Murray <rdmur...@bitdance.com>:

In forward porting a patch to py3k I noticed that there is a 'g' option
in the optparse argument list in regrtest in 2.x that is not present in
3.x.  But the surprising thing was that there are no docs for this
option, nor any option handler in the 2.x regrtest.

I propose to add an 'else' case to the option parsing loop that asks the
user to report a bug if it is handed an unknown option.  Patch attached.

My one question is whether this might have been intentional for backward
compatibility reasons: let -g be passed and ignore it silently.  I'm
guessing it was just a deletion oversight, though.

----------
components: Tests
files: regrtest-detect-bad-option.patch
keywords: patch, patch
messages: 95249
nosy: pitrou, r.david.murray
priority: low
severity: normal
stage: patch review
status: open
title: Add sanity-check else case to regrtest option parsing
type: feature request
versions: Python 2.7, Python 3.2
Added file: http://bugs.python.org/file15330/regrtest-detect-bad-option.patch

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue7324>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to