diff options
author | Aldo Cortesi <aldo@nullcube.com> | 2014-10-25 19:50:48 +1300 |
---|---|---|
committer | Aldo Cortesi <aldo@nullcube.com> | 2014-10-25 19:50:48 +1300 |
commit | c00ae41486de06192865f8539da0f00985a16a90 (patch) | |
tree | 4300dbba88c792f0e457b728874507f792ef251a /libpathod/cmdline.py | |
parent | fc4f9a1c7a0734a190b99265ca50d72014173859 (diff) | |
download | mitmproxy-c00ae41486de06192865f8539da0f00985a16a90.tar.gz mitmproxy-c00ae41486de06192865f8539da0f00985a16a90.tar.bz2 mitmproxy-c00ae41486de06192865f8539da0f00985a16a90.zip |
Add a memoize argument to prevent playing the same pattern twice
Also remove addition of Date header, which makes this non-deterministic
Diffstat (limited to 'libpathod/cmdline.py')
-rw-r--r-- | libpathod/cmdline.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libpathod/cmdline.py b/libpathod/cmdline.py index f80b7aae..fe5eed68 100644 --- a/libpathod/cmdline.py +++ b/libpathod/cmdline.py @@ -35,6 +35,14 @@ def go_pathoc(): help="Issue an HTTP CONNECT to connect to the specified host." ) parser.add_argument( + "-m", dest='memo', action="store_true", default=False, + help=""" + Remember specs, and never play the same one twice. Note that this + means requests have to be rendered in memory, which means that large + generated data can cause issues. + """ + ) + parser.add_argument( "-n", dest='repeat', default=1, type=int, metavar="N", help='Repeat N times. If 0 repeat for ever.' ) |