INNER CODE UNIT · TypeScript

parsedPort

lazy-dinosaur/ccxt-mcp · src/index.ts:42

  const parsedPort = Number.parseInt(args[portIndex + 1], 10);
  if (!Number.isNaN(parsedPort) && parsedPort > 0 && parsedPort <= 65535) {
    port = parsedPort;
  } else {
    console.error(`[ERROR] Invalid --port value: ${args[portIndex + 1]}`);
    process.exit(1);
  }
}

const showHelp = args.includes('--help') || args.includes('-h');
if (showHelp) {
  console.error(`
CCXT MCP Server

Usage:
  node dist/index.js [options]

Options:

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…