summaryrefslogtreecommitdiffstats
path: root/Lib/pydoc.py
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2003-10-31 13:05:21 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2003-10-31 13:05:21 (GMT)
commitf9b08b8e609916f970dc5ba2e41c9dbe1897240a (patch)
tree12ef5decb830021989d2b11da27857d66c09f36b /Lib/pydoc.py
parentbe4fea6198013c808d702210b065394d0771fd28 (diff)
downloadcpython-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-xLib/pydoc.py2
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> ...