feat(cli): document SENBEI_LANG in --help

The help now names the display-language variable, its values, the
fallback to the system language, and that JSON and saved logs stay
English. It is printed between the resource limits and the exit codes,
in every language.
This commit is contained in:
Momoko-Ayase committed 2026-11-08 03:27:48 +08:00
1 parent 4853fe22c0
commit 3b28f1aaa4
8 files changed
+33

No files matched your search

+3
View File
@@ -249,6 +249,9 @@ pub(crate) fn cli(cli: &Cli) -> Cow<'static, str> {
\x20 Limits are checked before extraction/allocation; they are not a peak-RSS cap."
)
.into(),
Cli::HelpLanguage => " SENBEI_LANG display language: en, zh-CN, zh-TW, ja, or ko. Unset, the\n\
\x20 system language is used. JSON and saved logs stay English."
.into(),
Cli::HelpExitCodes => " Exit codes: 0 success, 1 a target failed (or a suspect with\n\
\x20 --strict-integrity), 2 the command line was rejected."
.into(),