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))