diff options
author | Aldo Cortesi <aldo@corte.si> | 2017-03-24 11:29:36 +1300 |
---|---|---|
committer | Aldo Cortesi <aldo@corte.si> | 2017-03-25 10:48:12 +1300 |
commit | 65f0885bd6809966f694d1ffb965401b8ab2cffc (patch) | |
tree | ea90d5849f57d6b74ca0cefbb4498ff10776a848 /examples/simple/custom_option.py | |
parent | d69a411303298c944d5941e0f3e435ff96800a69 (diff) | |
download | mitmproxy-65f0885bd6809966f694d1ffb965401b8ab2cffc.tar.gz mitmproxy-65f0885bd6809966f694d1ffb965401b8ab2cffc.tar.bz2 mitmproxy-65f0885bd6809966f694d1ffb965401b8ab2cffc.zip |
addon loader: add boot_into, which replaces returning from start()
While we're here, expand test coverage for addonmanager to 100%, and promote to
individual coverage.
Diffstat (limited to 'examples/simple/custom_option.py')
-rw-r--r-- | examples/simple/custom_option.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/simple/custom_option.py b/examples/simple/custom_option.py index 3190b840..c8bc98d4 100644 --- a/examples/simple/custom_option.py +++ b/examples/simple/custom_option.py @@ -1,9 +1,9 @@ from mitmproxy import ctx -def load(options): +def load(l): ctx.log.info("Registering option 'custom'") - options.add_option("custom", bool, False, "A custom option") + l.add_option("custom", bool, False, "A custom option") def configure(options, updated): |