Patch #785689: Use basename in usage. Backported to 2.3.
This commit is contained in:
parent
be4fea6198
commit
f9b08b8e60
|
@ -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> ...
|
||||
|
|
Loading…
Reference in New Issue