mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-30 03:14:22 +00:00
b745428b5c
We also now ignore unknown options in config files by default, and print a warning if verbosity is incremented.
12 lines
289 B
Python
12 lines
289 B
Python
from mitmproxy import ctx
|
|
|
|
|
|
def start(options):
|
|
ctx.log.info("Registering option 'custom'")
|
|
options.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)
|