From fb3d3f46c9a1f92f21f6d782b970e38b7443a9dc Mon Sep 17 00:00:00 2001 From: AskaEth Date: Mon, 2 Nov 2026 08:01:21 +0800 Subject: [PATCH] =?UTF-8?q?docs(readme):=20=E6=9C=AA=E7=9F=A5=E5=AD=90?= =?UTF-8?q?=E5=91=BD=E4=BB=A4=E7=9A=84=E6=8F=90=E7=A4=BA=E6=94=B9=E6=88=90?= =?UTF-8?q?=20`unlucky-launcher=20--help`=EF=BC=88M82=20r4=20=E5=A4=8D?= =?UTF-8?q?=E5=AE=A1=20P2=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 两版 README 的「未知子命令是错误,不是开窗」一段写的是提示 `ull --help`,与真实输出相反: GUI 二进制跑出来是 `unlucky-launcher --help`(只有 `ull` 自己跑才是 `ull --help`), 而且同文 87/77 行已经写着「自称的名字跟着你敲的那个二进制走」——正文自相矛盾。 只改这两处;全文其余 `ull` 都是指 `ull` 那个产物本身(对照表、§ 说明、`ull --help` 的对比句), 按语境保留。 --- README.md | 4 ++-- README.zh-CN.md | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 2ce85fa..f21f1bf 100644 --- a/README.md +++ b/README.md @@ -110,8 +110,8 @@ The rule is deliberately narrow, so nothing that used to work changed meaning: still opens the GUI. **Unknown subcommands are an error, not a GUI launch**: `unlucky-launcher lst` prints -"未知命令 `lst`", hints `ull --help`, and exits 1. Silently opening a window would tell a script -that its typo took effect. The subcommand table itself lives in exactly one place — +"未知命令 `lst`", hints `unlucky-launcher --help`, and exits 1. Silently opening a window would tell +a script that its typo took effect. The subcommand table itself lives in exactly one place — `crates/cli/src/cli/parse.rs` — so both GUI binaries and `ull` accept the same set by construction. ## Module map diff --git a/README.zh-CN.md b/README.zh-CN.md index 6f4298d..64c5959 100644 --- a/README.zh-CN.md +++ b/README.zh-CN.md @@ -97,9 +97,9 @@ unlucky-launcher --version # CLI,输出版本 + 系统摘要 仍然开 GUI;GUI 专属参数(`--software-renderer`、`--screenshot*`、`--renderer`、`--theme`、 `--diff`、`--force-state` 等)在 CLI 里一律解析失败,也仍然开 GUI。 -**未知子命令是错误,不是开窗**:`unlucky-launcher lst` 打印「未知命令 `lst`」、提示 `ull --help`, -以 1 退出。静默开窗会让脚本以为自己那个拼错的参数生效了。子命令表只有一处定义 -(`crates/cli/src/cli/parse.rs`),所以两个 GUI 二进制和 `ull` 认的命令集天然一致。 +**未知子命令是错误,不是开窗**:`unlucky-launcher lst` 打印「未知命令 `lst`」、提示 +`unlucky-launcher --help`,以 1 退出。静默开窗会让脚本以为自己那个拼错的参数生效了。子命令表只有 +一处定义(`crates/cli/src/cli/parse.rs`),所以两个 GUI 二进制和 `ull` 认的命令集天然一致。 ## 模块地图