X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=tools%2Fmake-directive-index.py;fp=tools%2Fmake-directive-index.py;h=da10575f32bcffad9041dc9c9482d94798ebeeb8;hb=8c6c56c36fa0749a0af9bb6c9075ca01e5154ac6;hp=5b965f416326707b52e84c297e8bc33b001c2d29;hpb=f8b68539d0ddda5964d533c2eb9c0d8bff95616b;p=thirdparty%2Fsystemd.git diff --git a/tools/make-directive-index.py b/tools/make-directive-index.py index 5b965f41632..da10575f32b 100755 --- a/tools/make-directive-index.py +++ b/tools/make-directive-index.py @@ -187,6 +187,9 @@ def _extract_directives(directive_groups, formatting, page): storvar if klass else storopt)): for name in variablelist.iterfind(xpath): text = re.sub(r'([= ]).*', r'\1', name.text).rstrip() + if text.startswith('-'): + # for options, merge options with and without mandatory arg + text = text.partition('=')[0] stor[text].append((pagename, section)) if text not in formatting: # use element as formatted display