]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-91818: Use default program name in the CLI of many modules (GH-124867)
authorSerhiy Storchaka <storchaka@gmail.com>
Wed, 9 Oct 2024 21:20:53 +0000 (00:20 +0300)
committerGitHub <noreply@github.com>
Wed, 9 Oct 2024 21:20:53 +0000 (00:20 +0300)
commit7d2c39752fa6f685f15ad9c585d83a62553477c2
tree51379d14230688dd0cc64603521a160fc68a3648
parentcbfd39247983309a9ef0ae6da6c61cc71665b967
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 ...").
Lib/ast.py
Lib/ensurepip/__init__.py
Lib/ensurepip/_uninstall.py
Lib/json/tool.py
Lib/pdb.py
Lib/sqlite3/__main__.py
Lib/test/test_sqlite3/test_cli.py
Lib/tokenize.py
Lib/venv/__init__.py
Misc/NEWS.d/next/Library/2024-10-01-23-29-09.gh-issue-91818.Kz8cPI.rst [new file with mode: 0644]