docs: add skeleton for options script
This commit is contained in:
parent
623f9b694d
commit
0e62e386c0
|
@ -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))
|
Loading…
Reference in New Issue