From 67f825fc2445524dc5ef8234f2ee97d99cfce664 Mon Sep 17 00:00:00 2001 From: Ulf Magnusson Date: Sun, 28 Jan 2018 16:42:39 +0100 Subject: Warn if there's more than one help text Mirrors a warning I added to the C implementation. --- kconfiglib.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/kconfiglib.py b/kconfiglib.py index f38ddca..bf2d10c 100644 --- a/kconfiglib.py +++ b/kconfiglib.py @@ -1744,6 +1744,11 @@ class Kconfig(object): # Find first non-blank (not all-space) line and get its # indentation + if node.help is not None: + self._warn("{} defined with more than one help text -- " + "only the last one will be used" + .format(_name_and_loc_str(node.item))) + # Small optimization. This code is pretty hot. readline = self._file.readline -- cgit v1.2.3