mirror of https://github.com/python/cpython
Added help options to PDB
This commit is contained in:
parent
27f43740b1
commit
13be2cf284
|
@ -1238,7 +1238,7 @@ def help():
|
|||
print 'along the Python search path'
|
||||
|
||||
def main():
|
||||
if not sys.argv[1:]:
|
||||
if not sys.argv[1:] or sys.argv[1] in ("--help", "-h"):
|
||||
print "usage: pdb.py scriptfile [arg] ..."
|
||||
sys.exit(2)
|
||||
|
||||
|
|
Loading…
Reference in New Issue