summaryrefslogtreecommitdiffstats
path: root/Lib/pdb.py
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2024-10-09 21:20:53 (GMT)
committerGitHub <noreply@github.com>2024-10-09 21:20:53 (GMT)
commit7d2c39752fa6f685f15ad9c585d83a62553477c2 (patch)
tree51379d14230688dd0cc64603521a160fc68a3648 /Lib/pdb.py
parentcbfd39247983309a9ef0ae6da6c61cc71665b967 (diff)
downloadcpython-7d2c39752fa6f685f15ad9c585d83a62553477c2.zip
cpython-7d2c39752fa6f685f15ad9c585d83a62553477c2.tar.gz
cpython-7d2c39752fa6f685f15ad9c585d83a62553477c2.tar.bz2
gh-91818: Use default program name in the CLI of many modules (GH-124867)
As argparse now detects by default when the code was run as a module. This leads to using the actual executable name instead of simply "python" to display in the usage message ("usage: python -m ...").
Diffstat (limited to 'Lib/pdb.py')
-rw-r--r--Lib/pdb.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/pdb.py b/Lib/pdb.py
index aea6fb7..d9aed24 100644
--- a/Lib/pdb.py
+++ b/Lib/pdb.py
@@ -2423,8 +2423,7 @@ To let the script run up to a given line X in the debugged file, use
def main():
import argparse
- parser = argparse.ArgumentParser(prog="pdb",
- usage="%(prog)s [-h] [-c command] (-m module | pyfile) [args ...]",
+ parser = argparse.ArgumentParser(usage="%(prog)s [-h] [-c command] (-m module | pyfile) [args ...]",
description=_usage,
formatter_class=argparse.RawDescriptionHelpFormatter,
allow_abbrev=False)