Commit 134bb4b
committed
⚙️ fix: refine command parsing logic in main
⚙️ fix: refine command parsing logic in main
🐛 Bug Fixes:
- Changed condition to check any commit-specific option instead of only '-y'/'--yes'
- Fixed debug option handling to insert 'commit' only when next argument is not a known command
✨ Enhancements:
- Added explicit handling for global options to prevent inserting 'commit' command
- Reorganized conditional flow for clearer command insertion logic
Improved command line argument parsing to correctly handle commit, global, and debug options1 parent 8cb8633 commit 134bb4b
1 file changed
+8
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
155 | 155 | | |
156 | 156 | | |
157 | 157 | | |
158 | | - | |
159 | | - | |
| 158 | + | |
| 159 | + | |
160 | 160 | | |
161 | 161 | | |
162 | 162 | | |
163 | 163 | | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
164 | 169 | | |
165 | 170 | | |
166 | 171 | | |
167 | | - | |
| 172 | + | |
168 | 173 | | |
169 | 174 | | |
170 | 175 | | |
171 | 176 | | |
172 | 177 | | |
173 | | - | |
174 | | - | |
175 | | - | |
176 | | - | |
177 | | - | |
178 | 178 | | |
179 | 179 | | |
180 | 180 | | |
| |||
0 commit comments