diff -r 7ce22d0899e4 Doc/library/argparse.rst --- a/Doc/library/argparse.rst Fri Mar 14 21:54:41 2014 -0500 +++ b/Doc/library/argparse.rst Wed Mar 19 07:37:08 2014 -0700 @@ -175,10 +175,9 @@ prog ^^^^ -By default, :class:`ArgumentParser` objects uses ``sys.argv[0]`` to determine -how to display the name of the program in help messages. This default is almost -always desirable because it will make the help messages match how the program was -invoked on the command line. For example, consider a file named +By default, :class:`ArgumentParser` objects uses the base name of the path ``sys.argv[0]``, see :func:`~os.path.basename`, to determine +how to display the name of the program in help messages. This default is almost +always desirable because it will make the help messages use the same name that was used to invoke the program on the command line. For example, consider a file named ``myprogram.py`` with the following code:: import argparse @@ -196,7 +195,7 @@ -h, --help show this help message and exit --foo FOO foo help $ cd .. - $ python subdir\myprogram.py --help + $ python subdir/myprogram.py --help usage: myprogram.py [-h] [--foo FOO] optional arguments: