Merge branch 'mcp-flag' of https://github.com/continuedev/continue into mcp-flag
This commit is contained in:
commit
5baaf42f66
1 changed files with 1 additions and 1 deletions
|
|
@ -44,7 +44,7 @@ function extractSingleFlag(
|
|||
flagName: string,
|
||||
): string | undefined {
|
||||
const index = args.indexOf(flagName);
|
||||
if (index !== -1 && index + 1 < args.length) {
|
||||
if (index !== -1 && index + 1 < args.length && !args[index + 1].startsWith("--")) {
|
||||
return args[index + 1];
|
||||
}
|
||||
return undefined;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue