From b745428b5c4e89753a83fe228cb5478327eeb540 Mon Sep 17 00:00:00 2001 From: Aldo Cortesi Date: Tue, 14 Mar 2017 09:22:44 +1300 Subject: Enable custom options in config files We also now ignore unknown options in config files by default, and print a warning if verbosity is incremented. --- examples/simple/custom_option.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'examples/simple') diff --git a/examples/simple/custom_option.py b/examples/simple/custom_option.py index a8b4e778..324d27e7 100644 --- a/examples/simple/custom_option.py +++ b/examples/simple/custom_option.py @@ -7,4 +7,5 @@ def start(options): def configure(options, updated): - ctx.log.info("custom option value: %s" % options.custom) + if "custom" in updated: + ctx.log.info("custom option value: %s" % options.custom) -- cgit v1.2.3