aboutsummaryrefslogtreecommitdiffstats
path: root/libpathod/cmdline.py
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@nullcube.com>2014-10-26 18:16:47 +1300
committerAldo Cortesi <aldo@nullcube.com>2014-10-26 18:16:47 +1300
commit956149c126c0500aa67604996ca310824b2f23a2 (patch)
tree7cbe51958d2ca926b4969ff517067249763423de /libpathod/cmdline.py
parentbd1f7ebb5c3cf3dfa613e194f4728bae1420b241 (diff)
downloadmitmproxy-956149c126c0500aa67604996ca310824b2f23a2.tar.gz
mitmproxy-956149c126c0500aa67604996ca310824b2f23a2.tar.bz2
mitmproxy-956149c126c0500aa67604996ca310824b2f23a2.zip
--memo-limit - limit failed attempts to find new generated requests to N
Diffstat (limited to 'libpathod/cmdline.py')
-rw-r--r--libpathod/cmdline.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/libpathod/cmdline.py b/libpathod/cmdline.py
index fe5eed68..4a2390ed 100644
--- a/libpathod/cmdline.py
+++ b/libpathod/cmdline.py
@@ -35,6 +35,10 @@ def go_pathoc():
help="Issue an HTTP CONNECT to connect to the specified host."
)
parser.add_argument(
+ "--memo-limit", dest='memolimit', default=5000, type=int, metavar="N",
+ help='Stop if we do not find a valid request after N attempts.'
+ )
+ parser.add_argument(
"-m", dest='memo', action="store_true", default=False,
help="""
Remember specs, and never play the same one twice. Note that this