diff --git a/doc/src/command/build/reference.c b/doc/src/command/build/reference.c index 4e8c69fb6..8c0bcbb88 100644 --- a/doc/src/command/build/reference.c +++ b/doc/src/command/build/reference.c @@ -177,9 +177,14 @@ referenceConfigurationRender(const BldCfg *const bldCfg, const BldHlp *const bld const BldCfgOption *const optCfg = lstFind(bldCfg->optList, &optHlp->name); ASSERT(optCfg != NULL); + // Skip if option does not belong in this section if (!strEq(optHlp->section == NULL ? STRDEF("general") : optHlp->section, section->id)) continue; + // Skip if option is command-line only + if (strEq(optCfg->section, SECTION_COMMAND_LINE_STR)) + continue; + // Skip if option is internal if (optCfg->internal) continue; diff --git a/test/src/module/doc/buildTest.c b/test/src/module/doc/buildTest.c index 34ebfd5e9..83b43007f 100644 --- a/test/src/module/doc/buildTest.c +++ b/test/src/module/doc/buildTest.c @@ -258,11 +258,6 @@ testRun(void) "example: buffer-size=128KiB\n" "example: buffer-size=256KiB" "" - "" - "Config Option (--config)" - "config option summary." - "config option description." - "" "" "Secure Option (--secure)" "Secure option summary."
config option summary.
config option description.
Secure option summary.