Repository navigation
feat(help): end --help output with the unixwin portal link - #1273
Merged
Merged
Conversation
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>
1 of 3 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.
Summary
winuxcmd --help, barewinuxcmd, and thehelpalias now end with a GNU-style portal line:Home: <https://unixwin.dev>(src/Main/main.cppprintHelp, printed after the conditional locale hint so it is always the last line).format_help_text(every applet's--helpandwinuxcmd help <topic>) andformat_custom_help(wpm --help,top,mpicalc,tzset) append the same line after theWinuxCmd ...attribution, through the new i18n keycommon.home.format_custom_helpalso emits the trailing newline its final line previously lacked, sowpm --helpno longer leaves the shell prompt on the same line.zh-CNtranslation ships via unixwin/winuxcmd-i18n 0.6.20 (sync commit on that repo's main), which also backfills the previously missedmain.guide.*/main.category.*/main.i18n_hintkeys and stalecommand.sdiff.option.<short>/legacy.*entries so the catalog validates against a freshi18n_batch.py extractagain.Test plan
winuxcmd.help_outputs_end_with_unixwin_home_link(new): assertswinuxcmd --helpends withHome: <https://unixwin.dev>and thatls.exe --help/winuxcmd help sortcontain itwpm.wpm_help_matches_plain_usageextended to assert the portal linewinuxcmd.*+wpm.*suites pass locally (MSVC Debug, 112/112)i18n_batch.py validateof the updated zh-CN catalog against a fresh extract: validGenerated with Devin