Repository navigation
docs(help): align minor-group description density with GNU (issue #1127 P2) - #1163
Merged
Merged
Conversation
… P2)
Adopt the GNU multi-line description wording in --help for the eight
minor-group commands, without advertising unimplemented options:
stat 0.24 -> 0.94 format-sequence reference (files + file systems)
stty 0.25 -> 1.05 full settings reference; accepted-but-ignored
settings are marked as such (validated, no-op)
man 0.32 -> 0.62 man-db options that stay unimplemented are listed
under [DIFFERS]; ceiling set by the red line
top 0.37 -> 1.15 prose + per-option descriptions
numfmt 0.38 -> 0.99 UNIT/FIELDS/FORMAT reference, exit-status contract
dd 0.39 -> 1.09 operand/conv/flag reference as implemented
date 0.42 -> 0.84 full sequence, flag, width/modifier reference
time 0.45 -> 0.68 real/user/sys output contract; -f/-o/-a/-v/-q stay
under [DIFFERS] (ceiling set by the red line)
Lines of GNU help that document options this port does not implement are
omitted rather than promised, per the issue guardrail.
Add tests/differential/help-coverage-audit.py, which regenerates the
ours column of tests/differential/help-coverage-raw.json (GNU column is
carried over; --wsl re-measures it) and rerun it:
115/156 commands now measure at density >= 0.8. Rows outside the minor
group also move because the committed ours values predate merged help
changes on main (last regenerated at c001700, 2026-09-24); this rerun
re-measures every row against one binary.
i18n: zh-CN catalog synced in unixwin/winuxcmd-i18n (0.6.17).
1 of 12 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes the P2 minor 组 part of #1127 (MAJOR 组另行处理,本 PR 不动)。
变更
把 GNU 的多行描述措辞搬进 8 个 minor 组命令的
--help,只搬描述文案、不新增选项(遵守护栏:help 不得承诺未实现选项;GNU 描述里涉及本移植未实现选项的行被省略或收入[DIFFERS]段)。--cached仅提示、--terse等价格式均按实现描述)[DIFFERS];受红线限制这是诚实上限%后标志、宽度与 E/O 修饰符参考(全部已实现,含 %N/%q/%:z)[DIFFERS](受红线限制的诚实上限)man 与 time 未到 0.8:两者 GNU help 的主要篇幅是本移植未实现的选项清单,按护栏省略,故密度封顶 —— 在此注明(issue 要求“省略该行并在 PR 注明”)。
审计数据
新增
tests/differential/help-coverage-audit.py(重跑help-coverage-raw.json的 ours 列,GNU 列沿用,--wsl可重测),并用它全量重跑了审计:验证
winuxcmd-tests:2773/2775 通过;2 个失败为grep.grep_r_skips_cross_junction_trees_without_crashing/grep.grep_R_warns_and_terminates_on_junction_cycle,原因是本机无符号链接权限(create_directory_symlink: A required privilege is not held by the client),与本次 help 文案无关、任何分支同环境均复现。scripts/i18n_batch.py extract+validate通过;zh-CN 同步在 unixwin/winuxcmd-i18n 提交 32ea517(VERSION 0.6.17 bump,符合“catalogs 变更必须同 PR bump VERSION”约定),WINUX_LANG=zh-CN 运行时渲染抽查通过。scripts/format.py)已跑;范围外文件的历史格式漂移未纳入本 PR。