feat: CLI 参数解析迁移至 argparse (Issue #2)#19
Closed
urika wants to merge 1 commit into
Closed
Conversation
- 添加 _build_parser() 构建所有子命令 - run 子命令使用 argparse 处理所有参数 - 其他子命令通过 _cmd_dispatch() 保持向后兼容 - 支持 --help 标准输出 Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This was referenced May 29, 2026
Owner
Author
Code Review — PR #19: CLI 参数解析迁移至 argparse (v1)本 PR 与 PR #20 (fix/issue-2-argparse-v2) 功能完全相同,代码逻辑一致。两者存在相同的 Critical 问题:
详见 PR #20 的 review 评论。 建议: 关闭本 PR (#19),保留 PR #20 作为基础进行修改。PR #20 的代码更简洁,但 PR #19 中 |
Owner
Author
🔒 关闭本 PR — 与 PR #20 重复本 PR (#19) 与 PR #20 (fix/issue-2-argparse-v2) 功能完全相同,代码逻辑一致。 保留 PR #20 的理由:
两者存在相同的 Critical 问题(详见 PR #20 的 review),修复时请以 PR #20 为基础。 本 PR 关闭,后续工作在 PR #20 上继续。 |
Owner
Author
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
修复 Issue #2: CLI 参数解析迁移至 argparse
问题
原实现通过 sys.argv.pop() 遍历实现,参数顺序依赖性强,无标准 --help 输出。
修复
_build_parser()构建所有子命令 (run, resume, list, show, status, clean, config, skills, agents, pr, ci, review, cache, eval)_cmd_dispatch()保持向后兼容测试
Checklist