docs: use option-directive
Some checks are pending
macOS-CI / macOS-CI (dri) (push) Waiting to run
macOS-CI / macOS-CI (xlib) (push) Waiting to run

These arguments misrenders, and gets rendered using a long hyphen
instead of double dashes. Let's fix this by using the Sphinx
option-directive, which is meant for exactly this purpose instead.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39286>
This commit is contained in:
Erik Faye-Lund 2026-01-13 11:06:30 +01:00 committed by Marge Bot
parent 0b76d0a70b
commit 6293137d77

View file

@ -150,13 +150,30 @@ emit :ext:`GL_ARB_vertex_program`-style instructions:
Options include
- **--dump-ast** - dump source syntax tree
- **--dump-hir** - dump high-level IR code
- **--dump-lir** - dump low-level IR code
- **--link** - link shaders
- **--just-log** - display only shader / linker info if exist, without
.. option:: --dump-ast
dump source syntax tree
.. option:: --dump-hir
dump high-level IR code
.. option:: --dump-lir
dump low-level IR code
.. option:: --link
link shaders
.. option:: --just-log
display only shader / linker info if exist, without
any header or separator
- **--version** - [Mandatory] define the GLSL version to use
.. option:: --version
[Mandatory] define the GLSL version to use
Compiler Implementation
-----------------------