fix: 修复 Windows GUI 构建下 --help 无法输出#222
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
嗨,我已经审查了你的更改,一切看起来都很棒!
帮我变得更有用!请在每条评论上点 👍 或 👎,我会根据你的反馈改进之后的代码评审。
Original comment in English
Hey - I've reviewed your changes and they look great!
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
334ce10 to
c9ef8ec
Compare
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.
概要
Windows下的启动参数-h不会如描述一样,被正确的输出到控制台。
仅在Windows下:
-h/--help。说明
Windows GUI 子系统进程不会被 PowerShell/CMD 当作普通控制台子进程等待,因此该修复不能完全恢复原生 CLI 的提示符刷新行为。它只是在不把 MXU 主程序改成控制台程序的前提下,让
mxu.exe --help尽可能可靠地输出帮助文本。测试
正常编译通过,pwsh(chcp=65001) 下正确显示 -h内容