From de0fa568d78e2e4de3b9bd5c683b8f3cda217fcd Mon Sep 17 00:00:00 2001 From: Sam Sung <51686767+samwhosung@users.noreply.github.com> Date: Sat, 26 Sep 2026 02:38:27 +0700 Subject: [PATCH] A stale useUiScale comment, and a usage line for doc-links.py (#376) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Two small fixes. - `OptionsFrame.xml`: the comment on the missing Use UI Scale checkbox said benilla has no `useUiScale`. It is registered at "0" and never read, which is why the UI scale always applies. - `scripts/doc-links.py`: `--help` and `-h` print the usage in the module doc instead of running the full `cargo doc` pass. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 5.5 (1M context) --- crates/benilla-app/assets/ui/OptionsFrame.xml | 5 +++-- scripts/doc-links.py | 3 +++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/crates/benilla-app/assets/ui/OptionsFrame.xml b/crates/benilla-app/assets/ui/OptionsFrame.xml index 1bfb34ee..dd9c8f4b 100644 --- a/crates/benilla-app/assets/ui/OptionsFrame.xml +++ b/crates/benilla-app/assets/ui/OptionsFrame.xml @@ -1808,8 +1808,9 @@ - + diff --git a/scripts/doc-links.py b/scripts/doc-links.py index 705a3609..0455fd65 100755 --- a/scripts/doc-links.py +++ b/scripts/doc-links.py @@ -55,6 +55,9 @@ def declared_names() -> set[str]: def main() -> int: + if any(a in ("-h", "--help") for a in sys.argv[1:]): + print(__doc__.strip()) + return 0 report = "--report" in sys.argv text = run_rustdoc() found = re.findall(r"warning: unresolved link to `([^`]+)`\n\s*--> ([^\s:]+):(\d+)", text)