diff options
author | Aldo Cortesi <aldo@corte.si> | 2017-04-26 11:23:48 +1200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-26 11:23:48 +1200 |
commit | 1daf0b3f0ae80e1e2dce823204547611e28d6ee9 (patch) | |
tree | 57b4153fa4980e2af1aff7aae9c84ae507a463fb /examples/simple/custom_option.py | |
parent | 02c82b1b602b7d5ab03c1e25d7d89f44c593174a (diff) | |
parent | b72f1390937e9799f588fd9a1564056131fb1aa7 (diff) | |
download | mitmproxy-1daf0b3f0ae80e1e2dce823204547611e28d6ee9.tar.gz mitmproxy-1daf0b3f0ae80e1e2dce823204547611e28d6ee9.tar.bz2 mitmproxy-1daf0b3f0ae80e1e2dce823204547611e28d6ee9.zip |
Merge pull request #2264 from cortesi/options
Change the way addons handle options
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 c8bc98d4..5b6070dd 100644 --- a/examples/simple/custom_option.py +++ b/examples/simple/custom_option.py @@ -6,6 +6,6 @@ def load(l): l.add_option("custom", bool, False, "A custom option") -def configure(options, updated): +def configure(updated): if "custom" in updated: - ctx.log.info("custom option value: %s" % options.custom) + ctx.log.info("custom option value: %s" % ctx.options.custom) |