INNER CODE UNIT · TypeScript
serverFlag
openclaw/mcporter · src/cli.ts:597
serverFlag = args[index + 1];
index += 1;
continue;
}
if (token.startsWith('--server=')) {
serverFlag = token.slice('--server='.length);
continue;
}
if (token.startsWith('-')) {
continue;
}
if (token.includes('://')) {
return undefined;
}
const separator = token.indexOf('.');
if (separator > 0) {
return token.slice(0, separator);
}