summaryrefslogtreecommitdiff
path: root/Lib/pdb.py
diff options
context:
space:
mode:
authorDaniel Hahler <github@thequod.de>2019-09-12 17:46:37 +0200
committerBenjamin Peterson <benjamin@python.org>2019-09-12 16:46:37 +0100
commit855df7f273c3988c72f01e51ba57091887ec38b2 (patch)
tree10d74cb5367a17c8b955271badb11887bb428f5f /Lib/pdb.py
parentb1a2abdb06408ffc4f13d6ff50351ad49c99afc0 (diff)
downloadcpython-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-xLib/pdb.py2
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)