mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-26 02:10:59 +00:00
docs: add skeleton for options script
This commit is contained in:
parent
623f9b694d
commit
0e62e386c0
14
docs/scripts/options.py
Normal file
14
docs/scripts/options.py
Normal 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))
|
Loading…
Reference in New Issue
Block a user