From 97e1096a4fd919355cb49931790232b3f49b66f5 Mon Sep 17 00:00:00 2001 From: Andre Anjos <andre.anjos@idiap.ch> Date: Fri, 23 Jun 2017 11:12:50 +0200 Subject: [PATCH] Improve suggestion on variable naming convention to match python's (closes #81) --- bob/bio/base/tools/command_line.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/bob/bio/base/tools/command_line.py b/bob/bio/base/tools/command_line.py index 5ddd7150..d43a51d5 100644 --- a/bob/bio/base/tools/command_line.py +++ b/bob/bio/base/tools/command_line.py @@ -267,9 +267,7 @@ def check_config_consumed(config): if not keyword.startswith('_') and not keyword.isupper(): attr = getattr(config, keyword) if attr is not None and not inspect.isclass(attr) and not inspect.ismodule(attr): - logger.warn("The variable '%s' in a configuration file is not known or not supported; use all " - "uppercase variable names (e.g., '%s') to suppress this warning.", keyword, - keyword.upper()) + logger.warn("The variable '%s' in a configuration file is not known or not supported by this application; use a '_' prefix to the variable name (e.g., _%s) to suppress this warning", keyword, keyword) def parse_config_file(parsers, args, args_dictionary, keywords, skips): -- GitLab