diff options
author | Aldo Cortesi <aldo@nullcube.com> | 2012-10-31 11:23:53 +1300 |
---|---|---|
committer | Aldo Cortesi <aldo@nullcube.com> | 2012-10-31 11:34:58 +1300 |
commit | 3f50930dc06a980ac5dcf012fa23ecc0a70ce1b4 (patch) | |
tree | 9c3bf8fe82326072d2c470f47d12ed654b991fb6 /pathod | |
parent | 8c6cc8140c6ac51966bdfabd5bb1180c2dd623b0 (diff) | |
download | mitmproxy-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 'pathod')
-rwxr-xr-x | pathod | 15 |
1 files changed, 13 insertions, 2 deletions
@@ -92,7 +92,8 @@ def main(parser, args): timeout = args.timeout, logreq = args.logreq, logresp = args.logresp, - hexdump = args.hexdump + hexdump = args.hexdump, + explain = args.explain ) except pathod.PathodError, v: parser.error(str(v)) @@ -164,7 +165,17 @@ if __name__ == "__main__": ) - group = parser.add_argument_group('Controlling Output') + group = parser.add_argument_group( + 'Controlling Logging', + """ + Some of these options expand generated values for logging - if + you're generating large data, use them with caution. + """ + ) + group.add_argument( + "-e", dest="explain", action="store_true", default=False, + help="Explain responses" + ) group.add_argument( "-f", dest='logfile', default=None, type=str, help='Log to file.' |