[issue40527] Multiple "unknown option" errors when passing unknown arguments to the interpreter

2020-05-06 Thread STINNER Victor
STINNER Victor added the comment: > That was an insanely fast fix - thanks everyone! :) Sorry about that. We are working on this issue to ensure that next bugs will not fixed as quickly a this done ;-) -- ___ Python tracker

[issue40527] Multiple "unknown option" errors when passing unknown arguments to the interpreter

2020-05-06 Thread Florian Bruhin
Florian Bruhin added the comment: That was an insanely fast fix - thanks everyone! :) -- ___ Python tracker ___ ___

[issue40527] Multiple "unknown option" errors when passing unknown arguments to the interpreter

2020-05-06 Thread Dong-hee Na
Dong-hee Na added the comment: Thanks for the bug report Florian and for work Victor! I am now closing this issue :) -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue40527] Multiple "unknown option" errors when passing unknown arguments to the interpreter

2020-05-06 Thread miss-islington
miss-islington added the comment: New changeset bce4ddafdd188cc6deb1584728b67b9e149ca6a4 by Miss Islington (bot) in branch '3.8': bpo-40527: Fix command line argument parsing (GH-19955) https://github.com/python/cpython/commit/bce4ddafdd188cc6deb1584728b67b9e149ca6a4 --

[issue40527] Multiple "unknown option" errors when passing unknown arguments to the interpreter

2020-05-06 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 6.0 -> 7.0 pull_requests: +19272 pull_request: https://github.com/python/cpython/pull/19956 ___ Python tracker

[issue40527] Multiple "unknown option" errors when passing unknown arguments to the interpreter

2020-05-06 Thread Dong-hee Na
Dong-hee Na added the comment: New changeset 2668a9a5aa506a048aef7b4881c8dcf6b81c6870 by Victor Stinner in branch 'master': bpo-40527: Fix command line argument parsing (GH-19955) https://github.com/python/cpython/commit/2668a9a5aa506a048aef7b4881c8dcf6b81c6870 -- nosy: +corona10

[issue40527] Multiple "unknown option" errors when passing unknown arguments to the interpreter

2020-05-06 Thread STINNER Victor
STINNER Victor added the comment: > I was able to bisect this to the following commit: (...) Oh, well done! Yeah, it's all my fault ;-) It's a regression of the PEP 587 (PyConfig) implementation. I chose to share code between Python/preconfig.c and Python/initconfig.c rather than duplicate

[issue40527] Multiple "unknown option" errors when passing unknown arguments to the interpreter

2020-05-06 Thread STINNER Victor
STINNER Victor added the comment: Oh right, that's because Python parses the command line at least 3 times :-) The first 2 times, it is not supposed to log errors. It's a bug: attached PR 19955 fix it. -- ___ Python tracker

[issue40527] Multiple "unknown option" errors when passing unknown arguments to the interpreter

2020-05-06 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +19271 stage: -> patch review pull_request: https://github.com/python/cpython/pull/19955 ___ Python tracker ___

[issue40527] Multiple "unknown option" errors when passing unknown arguments to the interpreter

2020-05-06 Thread Florian Bruhin
New submission from Florian Bruhin : A minor issue I just discovered today: When e.g. doing "python3 --foo", the output is: unknown option --foo unknown option --foo unknown option --foo usage: /usr/bin/python3 [option] ... [-c cmd | -m mod | file | -] [arg] ... With more dashes in