diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2003-10-31 13:05:21 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2003-10-31 13:05:21 (GMT) |
commit | f9b08b8e609916f970dc5ba2e41c9dbe1897240a (patch) | |
tree | 12ef5decb830021989d2b11da27857d66c09f36b /Lib/pydoc.py | |
parent | be4fea6198013c808d702210b065394d0771fd28 (diff) | |
download | cpython-f9b08b8e609916f970dc5ba2e41c9dbe1897240a.zip cpython-f9b08b8e609916f970dc5ba2e41c9dbe1897240a.tar.gz cpython-f9b08b8e609916f970dc5ba2e41c9dbe1897240a.tar.bz2 |
Patch #785689: Use basename in usage. Backported to 2.3.
Diffstat (limited to 'Lib/pydoc.py')
-rwxr-xr-x | Lib/pydoc.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/pydoc.py b/Lib/pydoc.py index 8ccc203..e53aa16 100755 --- a/Lib/pydoc.py +++ b/Lib/pydoc.py @@ -2167,7 +2167,7 @@ def cli(): print value except (getopt.error, BadUsage): - cmd = sys.argv[0] + cmd = os.path.basename(sys.argv[0]) print """pydoc - the Python documentation tool %s <name> ... |