[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 ___

[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': #16

[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 ___ ___ Python

[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 ___ __

[issue16306] Multiple error line for unknown command line parameter

2012-11-23 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : Added file: http://bugs.python.org/file28088/test_unknown_option_2-2.7.patch ___ Python tracker ___ ___ Python-b

[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)

[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] ...

[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 _

[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

[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 _

[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

[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

[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 ___ __

[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 _

[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 ___ ___ Python-bugs-l

[issue16306] Multiple error line for unknown command line parameter

2012-10-25 Thread Hieu Nguyen
Changes by Hieu Nguyen : Added file: http://bugs.python.org/file27717/issue16306_py27.patch ___ Python tracker ___ ___ Python-bugs-list mailin

[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 ___ __

[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 ___

[issue16306] Multiple error line for unknown command line parameter

2012-10-24 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue16306] Multiple error line for unknown command line parameter

2012-10-23 Thread R. David Murray
Changes by R. David Murray : -- components: +Interpreter Core -None keywords: +easy versions: +Python 3.3, Python 3.4 ___ Python tracker ___ _

[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]