generate-setting-docs: error out on missing documentation

This commit is contained in:
Lubomir Rintel
2017-10-16 23:27:30 +02:00
parent c3080c79dc
commit acd814d50a

View File

@@ -257,6 +257,9 @@ for settingxml in settings:
prop_upper = prop.upper().replace('-', '_')
if value_desc is None:
raise Exception("%s.%s needs a documentation description" % (setting.props.name, prop))
if default_value is not None:
outfile.write(" <property name=\"%s\" name_upper=\"%s\" type=\"%s\" default=\"%s\" description=\"%s\" />\n" %
(prop, prop_upper, value_type, escape(default_value), escape(value_desc)))