[docs] [issue27992] Clarify %(prog)s in argparse help formatter returns basename of sys.argv[0] by default

Karthikeyan Singaravelan report at bugs.python.org
Mon Apr 1 05:27:07 EDT 2019


Karthikeyan Singaravelan <tir.karthi at gmail.com> added the comment:

Thanks for the report. To be little more clear it returns the "basename of sys.argv[0]" at [0] than the attached patch that says "uses part of ``sys.argv[0]``" .

[0] https://github.com/python/cpython/blob/62f9588663ebfea1735e9d142ef527395a6c2b95/Lib/argparse.py#L1638

----------
nosy: +paul.j3, xtreak
title: In the argparse there is a misleading words about %(prog)s value -> Clarify %(prog)s in argparse help formatter returns basename of sys.argv[0] by default
versions: +Python 3.7, Python 3.8 -Python 3.6

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue27992>
_______________________________________


More information about the docs mailing list