Repository navigation
fix(命令行): 修复参数解析并统一作用域能力校验 - #421
Merged
Merged
Conversation
-scope 缺参和版本选项解析不可靠,reset 缺少作用域能力校验,文档指引类型的作用域也无法统一处理。 修复参数消费与版本选项判断;为 set/reset 统一能力校验,补充文档指引枚举、双语提示和 recipe 模板。 从 RubyMetric#402 按功能拆出,直接基于 dev;Windows/POSIX 独立构建及现有测试通过。
|
Hi @Mikachu2333 ❤️ 感谢你的贡献!我们将在最少半小时,最多5天内阅读此 PR 并回复你 |
ccmywish
approved these changes
Nov 11, 2026
ccmywish
left a comment
Contributor
There was a problem hiding this comment.
ScopeCap_Able_But_Just_Docs 这个引入是非常好的
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.
问题描述
-scope 缺参和版本选项解析不可靠,reset 缺少作用域能力校验,文档指引类型的作用域也无法统一处理。
关联 #402。
方案与实现
修复参数消费与版本选项判断;为 set/reset 统一能力校验,补充文档指引枚举、双语提示和 recipe 模板。
本 PR 从 #402 独立拆出,直接基于
dev,可以单独审查和合并。验证:此分支独立通过 Windows
just build/test/bd、WSL Debianmake build/test/bd,以及调试程序的只读查询。另验证
-en --version、set -scope缺参和reset -scope=project rustup拒绝路径。Perl CLI 套件要求 5.42,本机版本不足,未运行整个套件。