Serhiy Storchaka added the comment:
Thanks, Ezio, for point.
> without the patch:
> $ ./python -a -z
> Unknown option: -a
> Unknown option: -z
> usage: ./python [option] ... [-c cmd | -m mod | file | -] [arg] ...
This behavior isn't correct. Try also "-E -a -z" and "-a -E -z" (also with
However I found an error in the test in my patch (actually previous test for
2.7 was correct, but not full). Patch updated, new tests added.
Added file: http://bugs.python.org/file28087/test_unknown_option_2.patch
Python tracker <rep...@bugs.python.org>
Python-bugs-list mailing list