aboutsummaryrefslogtreecommitdiffstats
path: root/pathoc
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@nullcube.com>2012-10-31 11:23:53 +1300
committerAldo Cortesi <aldo@nullcube.com>2012-10-31 11:34:58 +1300
commit3f50930dc06a980ac5dcf012fa23ecc0a70ce1b4 (patch)
tree9c3bf8fe82326072d2c470f47d12ed654b991fb6 /pathoc
parent8c6cc8140c6ac51966bdfabd5bb1180c2dd623b0 (diff)
downloadmitmproxy-3f50930dc06a980ac5dcf012fa23ecc0a70ce1b4.tar.gz
mitmproxy-3f50930dc06a980ac5dcf012fa23ecc0a70ce1b4.tar.bz2
mitmproxy-3f50930dc06a980ac5dcf012fa23ecc0a70ce1b4.zip
Use .freeze to implement the -e explain flags for pathod and pathoc.
This now prints (in pathoc) or logs (in pathod) a frozen specification that includes an expanded record of all generated values and locations.
Diffstat (limited to 'pathoc')
-rwxr-xr-xpathoc8
1 files changed, 7 insertions, 1 deletions
diff --git a/pathoc b/pathoc
index c9290587..96cb9f0a 100755
--- a/pathoc
+++ b/pathoc
@@ -33,7 +33,13 @@ if __name__ == "__main__":
'request', type=str, nargs="+",
help='Request specification'
)
- group = parser.add_argument_group('Controlling Output')
+ group = parser.add_argument_group(
+ 'Controlling Output',
+ """
+ Some of these options expand generated values for logging - if
+ you're generating large data, use them with caution.
+ """
+ )
group.add_argument(
"-C", dest="ignorecodes", type=str, default="",
help="Comma-separated list of response codes to ignore"