mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-23 08:11:00 +00:00
65f0885bd6
While we're here, expand test coverage for addonmanager to 100%, and promote to individual coverage.
12 lines
276 B
Python
12 lines
276 B
Python
from mitmproxy import ctx
|
|
|
|
|
|
def load(l):
|
|
ctx.log.info("Registering option 'custom'")
|
|
l.add_option("custom", bool, False, "A custom option")
|
|
|
|
|
|
def configure(options, updated):
|
|
if "custom" in updated:
|
|
ctx.log.info("custom option value: %s" % options.custom)
|