feat: CLI 参数解析迁移至 argparse (Issue #2)#20
Conversation
Code Review — PR #20: CLI 参数解析迁移至 argparse (v2)🔴 Critical1.
修复: 在 2. argparse 定义了
3. argparse 定义了
4. argparse 定义了
5. 缺少
运行这些命令的已有参数会在 argparse 层报错(未知参数)。 🟡 Major6. 通过重建
7.
🟢 Minor
总结: 需修复 Critical #1-5 后方可合并。核心问题是 |
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
- status: 添加 --watch/-w --no-tui --verbose/-v - pr: 添加 --offline 离线生成选项 - ci: repo 位置参数 + --dry-run - review: repo 位置参数 + --pr + --yes 参数 - cache: 子命令 list/clean/clear/stats 替代 --clear flag - workflow_gen.cmd_ci: 适配 argparse args 参数 Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
baf8153 to
a84935f
Compare
…sue #7) Rebased onto main (after PRs #20, #21, #27), conflicts resolved. Key changes: - 14 modules: type annotations added to all public functions - cli.py: argparse code preserved from PR #20 - executor.py: refactored functions preserved from PR #21, security functions from PR #27 - Fixed: logger definitions in eval.py, tui.py, git_utils.py Tests: 277 passed.
Summary
修复 Issue #2: CLI 参数解析迁移至 argparse
修复
_build_parser()构建所有子命令_cmd_dispatch()保持向后兼容测试
Checklist