From 0e62e386c0ede3f9d0ca7a82681e69977c0b59e6 Mon Sep 17 00:00:00 2001 From: Maximilian Hils Date: Sat, 24 Mar 2018 23:14:58 +0100 Subject: [PATCH] docs: add skeleton for options script --- docs/scripts/options.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 docs/scripts/options.py diff --git a/docs/scripts/options.py b/docs/scripts/options.py new file mode 100644 index 000000000..5ad23d677 --- /dev/null +++ b/docs/scripts/options.py @@ -0,0 +1,14 @@ +#!/usr/bin/env python +from mitmproxy import options, optmanager +from mitmproxy.tools import dump, console, web + +masters = { + "mitmproxy": console.master.ConsoleMaster, + "mitmdump": dump.DumpMaster, + "mitmweb": web.master.WebMaster +} + +for name, master in masters.items(): + opts = options.Options() + inst = master(opts) + print(optmanager.dump_dicts(opts))