{"record":{"id":"a09578ca2d84c16b","repo":"langgenius/dify","slug":"unknown-option-arg","errorCode":null,"errorMessage":"Unknown option: ${arg}","messagePattern":"Unknown option: (.+?)","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/migrate-no-unchecked-indexed-access/src/no-unchecked-indexed-access/migrate.ts","lineNumber":102,"sourceCode":"      const parsed = Number(value)\n      if (!Number.isInteger(parsed) || parsed <= 0)\n        throw new Error(`Invalid --max-iterations value: ${value}`)\n\n      options.maxIterations = parsed\n      i += 1\n      continue\n    }\n\n    if (arg === '--files') {\n      const value = argv[i + 1]\n      if (!value) throw new Error('Missing value for --files')\n\n      options.files.push(...splitFilesArgument(value))\n      i += 1\n      continue\n    }\n\n    if (arg.startsWith('--')) throw new Error(`Unknown option: ${arg}`)\n\n    options.files.push(...splitFilesArgument(arg))\n  }\n\n  return options\n}\n\nfunction splitFilesArgument(value: string): string[] {\n  return value\n    .split(',')\n    .map((item) => item.trim())\n    .filter(Boolean)\n}\n\nfunction parseTsConfig(projectPath: string): ts.ParsedCommandLine {\n  const cached = parsedConfigCache.get(projectPath)\n  if (cached) return cached\n","sourceCodeStart":84,"sourceCodeEnd":120,"githubUrl":"https://github.com/langgenius/dify/blob/ef8544b173fd6cd7a8e71df2cab576e52bebbfbc/packages/migrate-no-unchecked-indexed-access/src/no-unchecked-indexed-access/migrate.ts#L84-L120","documentation":"Error \"Unknown option: ${arg}\" thrown in langgenius/dify.","triggerScenarios":"Thrown at packages/migrate-no-unchecked-indexed-access/src/no-unchecked-indexed-access/migrate.ts:102 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"ef8544b173fd6cd7a8e71df2cab576e52bebbfbc","analyzedAt":"2026-08-12T05:15:17.394Z","schemaVersion":2},"datasetVersion":"2026-08-12T13:17:24.610Z"}