summaryrefslogtreecommitdiff
path: root/kconfiglib.py
diff options
context:
space:
mode:
authorUlf Magnusson <ulfalizer@gmail.com>2018-01-28 16:42:39 +0100
committerUlf Magnusson <ulfalizer@gmail.com>2018-01-28 16:42:39 +0100
commit67f825fc2445524dc5ef8234f2ee97d99cfce664 (patch)
tree43d428162b4981eacead83ffcbf61d16dfa2f9d7 /kconfiglib.py
parent5d2041a9a72e52f6e4b8ea83b00d72c1bfb78688 (diff)
Warn if there's more than one help text
Mirrors a warning I added to the C implementation.
Diffstat (limited to 'kconfiglib.py')
-rw-r--r--kconfiglib.py5
1 files changed, 5 insertions, 0 deletions
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