Merge branch 'mcp-flag' of https://github.com/continuedev/continue into mcp-flag

This commit is contained in:
Nate 2025-08-24 18:51:50 -07:00
commit 5baaf42f66

View file

@ -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;