error: no such option #27

amcnabb opened this Issue Nov 6, 2012 · 1 comment


None yet

2 participants

amcnabb commented Nov 6, 2012

When running python -m memory_profiler --some-args, memory_profile assumes that --some-args is intended for it rather than for This is easy to fix by adding the following single line immediately after creating the OptionParser:

@fabianp fabianp added a commit that referenced this issue Nov 18, 2012
@fabianp Ignore unrecognized args.
Fix by @amcnabb. Fixes issue #27
fabianp commented Nov 18, 2012

Added your fix and worked like a charm. Thanks!

@fabianp fabianp closed this Nov 18, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment