[issue16306] Multiple error line for unknown command line parameter

2012-11-23 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Sorry, it's my fault. Here is a patch which should fix the bug.

--
nosy: +skrah
Added file: http://bugs.python.org/file28082/test_unknown_option.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16306
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16306] Multiple error line for unknown command line parameter

2012-11-23 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Actually 2.7 tests should not be broken, but this patch unify 2.7 and 3.x code.

--
Added file: http://bugs.python.org/file28083/test_unknown_option-2.7.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16306
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16306] Multiple error line for unknown command line parameter

2012-11-23 Thread Ezio Melotti

Ezio Melotti added the comment:

The new patch doesn't seem to be correct:
without the patch:
$ ./python -a -z
Unknown option: -a
Unknown option: -z
usage: ./python [option] ... [-c cmd | -m mod | file | -] [arg] ...

with the patch:
$ ./python -a -z
Unknown option: -a
usage: ./python [option] ... [-c cmd | -m mod | file | -] [arg] ...

A test case for this should also be added.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16306
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16306] Multiple error line for unknown command line parameter

2012-11-23 Thread Serhiy Storchaka

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 
3.3.0).

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
http://bugs.python.org/issue16306
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16306] Multiple error line for unknown command line parameter

2012-11-23 Thread Serhiy Storchaka

Changes by Serhiy Storchaka storch...@gmail.com:


Added file: http://bugs.python.org/file28088/test_unknown_option_2-2.7.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16306
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16306] Multiple error line for unknown command line parameter

2012-11-23 Thread Ezio Melotti

Ezio Melotti added the comment:

 This behavior isn't correct.

Shouldn't python report all the invalid flags passed?

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16306
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16306] Multiple error line for unknown command line parameter

2012-11-23 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Should not. It happened unintentionally (and inconsistently).

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16306
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16306] Multiple error line for unknown command line parameter

2012-11-23 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 6a79e3beb854 by Ezio Melotti in branch '2.7':
#16306: report only the first unknown option and add more tests.  Patch by 
Serhiy Storchaka.
http://hg.python.org/cpython/rev/6a79e3beb854

New changeset 654a628f5f00 by Ezio Melotti in branch '3.2':
#16306: report only the first unknown option and add more tests.  Patch by 
Serhiy Storchaka.
http://hg.python.org/cpython/rev/654a628f5f00

New changeset 421a8a5ffbb2 by Ezio Melotti in branch '3.3':
#16306: merge with 3.2.
http://hg.python.org/cpython/rev/421a8a5ffbb2

New changeset 51caa0820fad by Ezio Melotti in branch 'default':
#16306: merge with 3.3.
http://hg.python.org/cpython/rev/51caa0820fad

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16306
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16306] Multiple error line for unknown command line parameter

2012-11-23 Thread Ezio Melotti

Ezio Melotti added the comment:

Buildbots are happy, closing.
Thanks Serhiy for the patches!

--
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16306
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16306] Multiple error line for unknown command line parameter

2012-11-22 Thread Antoine Pitrou

Antoine Pitrou added the comment:

You broke the Ubuntu Shared buildbot, could you fix it?
http://buildbot.python.org/all/buildslaves/bolen-ubuntu

--
nosy: +pitrou
status: closed - open

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16306
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16306] Multiple error line for unknown command line parameter

2012-11-18 Thread Roundup Robot

Roundup Robot added the comment:

New changeset d2df83d7c649 by Ezio Melotti in branch '2.7':
#16306: Fix multiple error messages when unknown command line parameters where 
passed to the interpreter.  Patch by Hieu Nguyen.
http://hg.python.org/cpython/rev/d2df83d7c649

New changeset 0153c077a0fd by Ezio Melotti in branch '3.2':
#16306: Fix multiple error messages when unknown command line parameters where 
passed to the interpreter.  Patch by Hieu Nguyen.
http://hg.python.org/cpython/rev/0153c077a0fd

New changeset 7f01121a660d by Ezio Melotti in branch '3.3':
#16306: merge with 3.2.
http://hg.python.org/cpython/rev/7f01121a660d

New changeset 3a1bcb6de167 by Ezio Melotti in branch 'default':
#16306: merge with 3.3.
http://hg.python.org/cpython/rev/3a1bcb6de167

--
nosy: +python-dev

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16306
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16306] Multiple error line for unknown command line parameter

2012-11-18 Thread Ezio Melotti

Ezio Melotti added the comment:

Fixed, thanks for the patch!

--
assignee:  - ezio.melotti
resolution:  - fixed
stage: commit review - committed/rejected
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16306
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16306] Multiple error line for unknown command line parameter

2012-10-30 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Hieu Nguyen, can you please submit a contributor form?

http://python.org/psf/contrib/contrib-form/
http://python.org/psf/contrib/

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16306
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16306] Multiple error line for unknown command line parameter

2012-10-30 Thread Hieu Nguyen

Hieu Nguyen added the comment:

Serhiy, actually I have submitted my contributor form to Petri Lehtinen in  a 
sprint here in Finland.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16306
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16306] Multiple error line for unknown command line parameter

2012-10-25 Thread Hieu Nguyen

Hieu Nguyen added the comment:

Submitted another patchs for py3k and python 2.7

--
Added file: http://bugs.python.org/file27716/issue16306_py3.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16306
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16306] Multiple error line for unknown command line parameter

2012-10-25 Thread Hieu Nguyen

Changes by Hieu Nguyen ndhie...@gmail.com:


Added file: http://bugs.python.org/file27717/issue16306_py27.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16306
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16306] Multiple error line for unknown command line parameter

2012-10-25 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

LGTM.

--
nosy: +serhiy.storchaka
stage:  - commit review

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16306
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16306] Multiple error line for unknown command line parameter

2012-10-24 Thread Ezio Melotti

Changes by Ezio Melotti ezio.melo...@gmail.com:


--
nosy: +ezio.melotti

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16306
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16306] Multiple error line for unknown command line parameter

2012-10-24 Thread Hieu Nguyen

Hieu Nguyen added the comment:

I've attached the patch for this issue, including the test.

--
keywords: +patch
nosy: +hieu.nguyen
Added file: http://bugs.python.org/file27705/issue16306.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16306
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16306] Multiple error line for unknown command line parameter

2012-10-23 Thread Thiébaud Weksteen

New submission from Thiébaud Weksteen:

Hi,

I've just came across an insignificant bug in the Python command line 
interface. When using an unknown parameter, the same error appears 
more than once:

$ python3 -a -z
Unknown option: -a
Unknown option: -z
Unknown option: -a
usage: python3 [option] ... [-c cmd | -m mod | file | -] [arg] ...
Try `python -h' for more information.
$ python -a -z
Unknown option: -a
Unknown option: -z
Unknown option: -a
usage: python [option] ... [-c cmd | -m mod | file | -] [arg] ...
Try `python -h' for more information.

--
components: None
messages: 173649
nosy: tweksteen
priority: normal
severity: normal
status: open
title: Multiple error line for unknown command line parameter
type: behavior
versions: Python 2.7, Python 3.2

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16306
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16306] Multiple error line for unknown command line parameter

2012-10-23 Thread R. David Murray

Changes by R. David Murray rdmur...@bitdance.com:


--
components: +Interpreter Core -None
keywords: +easy
versions: +Python 3.3, Python 3.4

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16306
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com