fix: read shared cli options in the doc page check

This commit is contained in:
Abdessamad Derraz committed 2026-11-21 16:43:57 +01:00
1 parent 3869a24b6a
commit 8ec1c3aa2f
1 file changed
+1 -1
+1 -1
View File
@@ -1032,7 +1032,7 @@ def unknown_commands(text: str) -> list[str]:
wrong.extend(
f"{name} {option}"
for option in re.findall(r"(?<![\w-])(--[a-z][a-z0-9-]*)", command)
if f'"{option}"' not in source
if f'"{option}"' not in source and option not in declared_options(source)
)
return sorted(set(wrong))