Skip to content

bpo-27992: Clarify %(prog)s in argparse help formatter for sys.argv[0] #12717

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

py-user
Copy link

@py-user py-user commented Apr 7, 2019

In the argparse docs there is a misleading words about %(prog)s value.
The documentation says it should print full string from sys.argv[0] by
default, but it prints basename of the path in sys.argv[0].

https://bugs.python.org/issue27992

…s.argv[0]

In the argparse docs there is a misleading words about %(prog)s value.
The documentation says it should print full string from sys.argv[0] by
default, but it prints basename of the path in sys.argv[0].
Copy link
Member

@tirkarthi tirkarthi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks.

@rhettinger
Copy link
Contributor

It looks like this was already handled in another PR.

Closing as out-of-date.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants