Commit 13be2cf2 authored by Benjamin Peterson's avatar Benjamin Peterson

Added help options to PDB

parent 27f43740
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment