[docs] [issue20970] contradictory documentation for prog option of argparse
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 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 default, ArgumentParser objects uses the base name of the path sys.argv 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.
Python tracker <report at bugs.python.org>
More information about the docs