From: Martin v. Löwis Date: Fri, 31 Oct 2003 13:05:04 +0000 (+0000) Subject: Patch #785689: Use basename in usage. X-Git-Tag: v2.3.3c1~98 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=278dae5630ebe648bb032228e1c4a7f83967726e;p=thirdparty%2FPython%2Fcpython.git Patch #785689: Use basename in usage. --- diff --git a/Lib/pydoc.py b/Lib/pydoc.py index 410d921209ef..267ff0610351 100755 --- a/Lib/pydoc.py +++ b/Lib/pydoc.py @@ -2121,7 +2121,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 ...