diff options
-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> ... |