Skip to content
Browse files

Ignore unrecognized args.

Fix by @amcnabb. Fixes issue #27
  • Loading branch information...
1 parent 014f6f8 commit a8dc01d6c48494c78999707fb0c47800f3cdb5df @fabianp committed Nov 18, 2012
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")

0 comments on commit a8dc01d

Please sign in to comment.
Something went wrong with that request. Please try again.