Commit 12b2c09
committed
fix(cli): 修复 Windows Shell 配置时的命令行参数处理顺序
- 将 Windows Shell 配置逻辑调整到 --version 和 --help 参数处理之后
- 避免在 Windows 无 Git Bash 环境下配置 Shell 时提前退出进程
- 确保命令行参数如 --version 和 --help 正常工作
- 添加 configureWindowsShell 函数注释说明其调用时机和作用
- 清理 cli.tsx 中的导入和调用顺序,提高代码可读性1 parent 24a2ad9 commit 12b2c09
1 file changed
Lines changed: 11 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
15 | 14 | | |
16 | 15 | | |
17 | 16 | | |
| |||
24 | 23 | | |
25 | 24 | | |
26 | 25 | | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
27 | 31 | | |
28 | 32 | | |
29 | 33 | | |
| |||
95 | 99 | | |
96 | 100 | | |
97 | 101 | | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
98 | 108 | | |
99 | 109 | | |
100 | 110 | | |
| |||
0 commit comments