Skip to content

Commit 5b98705

Browse files
ibuclawdlang-bot
authored andcommitted
ddoc: Don't generate undocumented cli options
1 parent 64b8149 commit 5b98705

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ddoc/source/preprocessor.d

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -394,6 +394,8 @@ auto genSwitches(string fileText)
394394

395395
foreach (option; Usage.options)
396396
{
397+
if (!option.documented)
398+
continue;
397399
string flag = option.flag;
398400
string helpText = option.helpText;
399401
if (!option.ddocText.empty)

0 commit comments

Comments
 (0)