summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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> ...