[docs] [issue20970] contradictory documentation for prog option of argparse

Kinga Farkas report at bugs.python.org
Wed Mar 19 02:35:47 CET 2014


Kinga Farkas added the comment:

So, would it be helpful to rephrase the original text

"By default, ArgumentParser objects uses sys.argv[0] to determine how to display the name of the program in thehelp messages. This default is almost always desirable because it will make the help messages match how the program was invoked on the command line." 

 by 

"By default, ArgumentParser objects uses the base name of the path sys.argv[0] to determine how to display the name of the program in the help messages."

And then all that would remain is to change the backslash to a forward slash in the example that follows.

----------
nosy: +lilbludot

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue20970>
_______________________________________


More information about the docs mailing list