mirror of
https://github.com/Momoko-Ayase/Senbei.git
synced 2026-11-25 02:52:47 +08:00
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:
1 parent
4853fe22c0
commit
3b28f1aaa4
8 files changed
+33
No files matched your search
@@ -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(),
|
||||
|
||||
Reference in new issue
Block a user