From b72f1390937e9799f588fd9a1564056131fb1aa7 Mon Sep 17 00:00:00 2001 From: Aldo Cortesi Date: Wed, 26 Apr 2017 11:01:27 +1200 Subject: configure(options, updated) -> configure(updated) Options are now available globally on ctx, so the first argument of configure is redundant. --- examples/simple/custom_option.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'examples/simple/custom_option.py') 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) -- cgit v1.2.3