doc: fix autogenerated Python examples for required options without defaults#6987
doc: fix autogenerated Python examples for required options without defaults#6987sakirr05 wants to merge 1 commit intoOSGeo:mainfrom
Conversation
0d9f65f to
2b44912
Compare
|
Please add screenshots before and after the change. Also, no need to use new PRs, updating the branch is usually enough (looking at your previous PR). |
|
Hi @wenzeslaus, |
|
Please clarify how this relates to the issue this is claiming to fix? I'm reluctant to merge just a code reshuffle. |
|
hey @wenzeslaus This change makes sure a valid option is used instead, so the generated example reflects a real, runnable invocation rather than a placeholder. |
|
Can you please show a screenshot of the build documentation in the state before and after? |
|
hey @wenzeslaus here's the comparison |


Fixes #5580.
Improves autogenerated Python documentation examples for required options
with multiple valid values but no default.
The documentation generator now selects the first valid option instead of
using a placeholder string, ensuring Python examples are runnable.
This change only affects documentation generation.
before change
after change