mirror of
https://github.com/tiennm99/ccs.git
synced 2026-10-14 06:17:27 +00:00
Merge pull request #1432 from kaitranntt/codex/fix-ccsxp-argument-parsing-bug
fix: stop ccsxp model alias parsing at option terminator
This commit is contained in:
2 files changed
+33
-1
No files matched your search
@@ -143,6 +143,10 @@ function normalizeCcsxpCodexModelFlagAliases(args: string[]): {
|
||||
|
||||
for (let index = 0; index < normalizedArgs.length; index += 1) {
|
||||
const arg = normalizedArgs[index];
|
||||
if (arg === '--') {
|
||||
break;
|
||||
}
|
||||
|
||||
if (arg === '-m' || arg === '--model') {
|
||||
const nextValue = normalizedArgs[index + 1];
|
||||
if (typeof nextValue === 'string') {
|
||||
|
||||
Reference in new issue
Block a user