diff options
author | Daniel Hahler <github@thequod.de> | 2019-09-12 17:46:37 +0200 |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2019-09-12 16:46:37 +0100 |
commit | 855df7f273c3988c72f01e51ba57091887ec38b2 (patch) | |
tree | 10d74cb5367a17c8b955271badb11887bb428f5f /Lib/pdb.py | |
parent | b1a2abdb06408ffc4f13d6ff50351ad49c99afc0 (diff) | |
download | cpython-git-855df7f273c3988c72f01e51ba57091887ec38b2.tar.gz |
closes bpo-37803: pdb: fix handling of options (--help / --version) (GH-15193)
The "--" should not be included with long options passed to
getopt.getopt.
Fixes https://bugs.python.org/issue37803
Diffstat (limited to 'Lib/pdb.py')
-rwxr-xr-x | Lib/pdb.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/pdb.py b/Lib/pdb.py index 8c1c96163e..8639204891 100755 --- a/Lib/pdb.py +++ b/Lib/pdb.py @@ -1660,7 +1660,7 @@ To let the script run up to a given line X in the debugged file, use def main(): import getopt - opts, args = getopt.getopt(sys.argv[1:], 'mhc:', ['--help', '--command=']) + opts, args = getopt.getopt(sys.argv[1:], 'mhc:', ['help', 'command=']) if not args: print(_usage) |