Skip to content

feat(help): end --help output with the unixwin portal link - #1273

Merged
caomengxuan666 merged 1 commit into
mainfrom
feat/help-portal-link
Oct 21, 2026
Merged

caomengxuan666 merged 1 commit into
mainfrom
feat/help-portal-link

Conversation

@caomengxuan666

Copy link
Copy Markdown
Member

Summary

  • winuxcmd --help, bare winuxcmd, and the help alias now end with a GNU-style portal line: Home: <https://unixwin.dev> (src/Main/main.cpp printHelp, printed after the conditional locale hint so it is always the last line).
  • The shared help formatter format_help_text (every applet's --help and winuxcmd help <topic>) and format_custom_help (wpm --help, top, mpicalc, tzset) append the same line after the WinuxCmd ... attribution, through the new i18n key common.home.
  • format_custom_help also emits the trailing newline its final line previously lacked, so wpm --help no longer leaves the shell prompt on the same line.
  • i18n: English fallback lives in source; zh-CN translation ships via unixwin/winuxcmd-i18n 0.6.20 (sync commit on that repo's main), which also backfills the previously missed main.guide.*/main.category.*/main.i18n_hint keys and stale command.sdiff.option.<short>/legacy.* entries so the catalog validates against a fresh i18n_batch.py extract again.

Test plan

  • winuxcmd.help_outputs_end_with_unixwin_home_link (new): asserts winuxcmd --help ends with Home: <https://unixwin.dev> and that ls.exe --help / winuxcmd help sort contain it
  • wpm.wpm_help_matches_plain_usage extended to assert the portal line
  • Full winuxcmd.* + wpm.* suites pass locally (MSVC Debug, 112/112)
  • i18n_batch.py validate of the updated zh-CN catalog against a fresh extract: valid

Generated with Devin

Append "Home: <https://unixwin.dev>" as the GNU-style footer of every
help variant: the top-level printHelp tail (bare winuxcmd, --help, the
help alias), the shared format_help_text used by each applet's --help
and `winuxcmd help <topic>`, and format_custom_help (wpm, top, mpicalc,
tzset). The custom-help path also gains the trailing newline its
previously unterminated attribution line lacked. New i18n key
common.home carries the English fallback; zh-CN ships via
unixwin/winuxcmd-i18n 0.6.20.

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@caomengxuan666
caomengxuan666 merged commit e22a80c into main Oct 21, 2026
8 checks passed
@caomengxuan666
caomengxuan666 deleted the feat/help-portal-link branch October 30, 2026 01:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant