Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Ignore unrecognized args.

Fix by @amcnabb. Fixes issue #27
  • Loading branch information...
commit a8dc01d6c48494c78999707fb0c47800f3cdb5df 1 parent 014f6f8
@fabianp authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  memory_profiler.py
View
1  memory_profiler.py
@@ -550,6 +550,7 @@ def wrapper(*args, **kwargs):
if __name__ == '__main__':
from optparse import OptionParser
parser = OptionParser(usage=_CMD_USAGE, version=__version__)
+ parser.disable_interspersed_args()
parser.add_option("--pdb-mmem", dest="max_mem", metavar="MAXMEM",
type="float", action="store",
help="step into the debugger when memory exceeds MAXMEM")
Please sign in to comment.
Something went wrong with that request. Please try again.