{"record":{"id":"e47532e5485cd716","repo":"affaan-m/ECC","slug":"unknown-nasiko-command-argument-argument","errorCode":null,"errorMessage":"Unknown Nasiko ${command} argument: ${argument}","messagePattern":"Unknown Nasiko (.+?) argument: (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"scripts/nasiko.js","lineNumber":49,"sourceCode":"  let options = { dryRun: false, installDir: undefined, json: false, version: undefined, yes: false };\n  for (let index = 0; index < argumentsList.length; index += 1) {\n    const argument = argumentsList[index];\n    if (argument === '--version' || argument === '--install-dir') {\n      const value = argumentsList[index + 1];\n      if (!value || value.startsWith('--')) throw new Error(`Missing value for ${argument}.`);\n      options = {\n        ...options,\n        [argument === '--version' ? 'version' : 'installDir']: value,\n      };\n      index += 1;\n    } else if (argument === '--yes' || argument === '-y') {\n      options = { ...options, yes: true };\n    } else if (argument === '--dry-run') {\n      options = { ...options, dryRun: true };\n    } else if (argument === '--json') {\n      options = { ...options, json: true };\n    } else {\n      throw new Error(`Unknown Nasiko ${command} argument: ${argument}`);\n    }\n  }\n  if (!options.version) throw new Error(`Nasiko ${command} requires --version v0.1.0.`);\n  if (options.installDir) validateInstallDirectory(options.installDir);\n  return options;\n}\n\nfunction defaultExecutablePath() {\n  const normalized = normalizePlatform();\n  if (normalized.os === 'windows') {\n    return process.env.LOCALAPPDATA\n      ? path.join(process.env.LOCALAPPDATA, 'nasiko', 'bin', normalized.binaryName)\n      : null;\n  }\n  return path.join(os.homedir(), '.local', 'bin', normalized.binaryName);\n}\n\nfunction resolveExecutable(options = {}) {","sourceCodeStart":31,"sourceCodeEnd":67,"githubUrl":"https://github.com/affaan-m/ECC/blob/06c5e118c4d3e6c3b7f9445f973a2194c82de193/scripts/nasiko.js#L31-L67","documentation":"parseMutationArguments encountered an argument that is not one of the recognized install/uninstall flags (--version, --install-dir, --yes, -y, --dry-run, --json). The token is rejected before any install action runs.","triggerScenarios":"Triggered when nasiko.js rejects the current invocation: Unknown Nasiko <value> argument: <value>","commonSituations":"Occurs while running scripts/nasiko.js with invalid arguments, missing flags, or a failing external dependency; the guard at scripts/nasiko.js:49 aborts the command with this message.","solutions":["Remove or correct the unrecognized input; run the command with --help to list valid arguments/commands."],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"06c5e118c4d3e6c3b7f9445f973a2194c82de193","analyzedAt":"2026-08-18T11:27:13.915Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-14T05:17:10.506Z"}