docs: add skeleton for options script

This commit is contained in:
Maximilian Hils 2018-03-24 23:14:58 +01:00
parent 623f9b694d
commit 0e62e386c0

14
docs/scripts/options.py Normal file
View File

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