<div dir="ltr"><a href="https://www.sphinx-doc.org/en/master/usage/restructuredtext/domains.html?highlight=..%20option#directive-program">https://www.sphinx-doc.org/en/master/usage/restructuredtext/domains.html?highlight=..%20option#directive-program</a> might be what you are looking for. You probably need multiple program directives (llvm-tblgen, mlir-tblgen etc), since it sounds to me like you are dealing with multiple different (albeit related) programs, since the same program can't have two identically-named but different options.<br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, 26 Jan 2021 at 15:25, Paul C. Anagnostopoulos <<a href="mailto:paul@windfall.com">paul@windfall.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">The file has a '.. program:: tblgen' at the top. I think the issue is that there are two identical '.. option' names in the same file. Apparently each option generates a target name, two of which are the same.<br>
<br>
Does anyone know where to find the documentation on the '.. option' directive? I just exceeded by 10-minute limit on searching the interwebs.<br>
<br>
At 1/26/2021 03:24 AM, James Henderson wrote:<br>
>I think you need to scope the doc - there are similar issues in various of the LLVM binutils tools. For example, both the llvm-readelf and llvm-objdump docs describe the `--file-headers` options. The scoping you need (I think) is the line at the top of these docs that looks something like `.. program:: llvm-objdump`. Indeed, without that scoping, you can potentially end up with docs linking to options described on other pages, which is almost certainly not what you want.<br>
<br>
</blockquote></div>