You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hiya, I think you are right, this is a regression from the argparse switch in pdb added in PR gh-125115. since the pdb parser has no positional arguments defined, parser.parse_known_args() doesn't consume the -- separator and returns it in the remainder list. The manual post processing logic in parse_args() then incorrectly treats this -- as an unrecognized arg.
I am working on a fix in parse_args() that checks for the -- separator. When found it would be popped from the argument list to mark the end of debugger options. :)
Activity
picnixz commentedon Apr 15, 2026
cc @gaogaotiantian
Shrey-N commentedon Apr 15, 2026
Hiya, I think you are right, this is a regression from the argparse switch in pdb added in PR gh-125115. since the pdb parser has no positional arguments defined,
parser.parse_known_args()doesn't consume the -- separator and returns it in the remainder list. The manual post processing logic inparse_args()then incorrectly treats this -- as an unrecognized arg.I am working on a fix in
parse_args()that checks for the -- separator. When found it would be popped from the argument list to mark the end of debugger options. :)gh-148615: Handle `--` separator in pdb argument parsing (#148624)
[3.14] gh-148615: Handle `--` separator in pdb argument parsing (GH-1… (