Karthikeyan Singaravelan <tir.kar...@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 <rep...@bugs.python.org>
<https://bugs.python.org/issue27992>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to