X Tutup
Skip to content

gh-91818: Use default program name in the CLI of many modules#124867

Merged
serhiy-storchaka merged 1 commit intopython:mainfrom
serhiy-storchaka:stdlib-cli-progname
Oct 9, 2024
Merged

gh-91818: Use default program name in the CLI of many modules#124867
serhiy-storchaka merged 1 commit intopython:mainfrom
serhiy-storchaka:stdlib-cli-progname

Conversation

@serhiy-storchaka
Copy link
Member

@serhiy-storchaka serhiy-storchaka commented Oct 1, 2024

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 ...").

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 ...").
@serhiy-storchaka serhiy-storchaka merged commit 7d2c397 into python:main Oct 9, 2024
@serhiy-storchaka serhiy-storchaka deleted the stdlib-cli-progname branch October 9, 2024 21:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

X Tutup