{"record":{"id":"1c67dad9a9d5d40a","repo":"affaan-m/ECC","slug":"missing-value-for-argument-1c67da","errorCode":null,"errorMessage":"Missing value for ${argument}.","messagePattern":"Missing value for (.+?)\\.","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"scripts/nasiko.js","lineNumber":36,"sourceCode":"Usage:\n  ecc nasiko status [--install-dir <absolute-path>] [--json]\n  ecc nasiko install --version v0.1.0 --yes [--install-dir <absolute-path>] [--json]\n  ecc nasiko install --version v0.1.0 --dry-run [--install-dir <absolute-path>] [--json]\n  ecc nasiko uninstall --version v0.1.0 --yes [--install-dir <absolute-path>] [--json]\n\nThe installer is opt-in, accepts only ECC-qualified pinned releases, downloads\ncontent-addressed OCI artifacts from registry.nasiko.dev, verifies SHA-256\ndigests before extraction, and never executes fetched shell or PowerShell code.\n`;\n}\n\nfunction parseMutationArguments(argumentsList, command = 'install') {\n  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;","sourceCodeStart":18,"sourceCodeEnd":54,"githubUrl":"https://github.com/affaan-m/ECC/blob/06c5e118c4d3e6c3b7f9445f973a2194c82de193/scripts/nasiko.js#L18-L54","documentation":"parseMutationArguments looked at the token after a value-taking Nasiko argument (e.g. --version or --install-dir) and found it missing or flag-shaped. The argument named in the message requires a following value token.","triggerScenarios":"Triggered when nasiko.js rejects the current invocation: Missing value for <value>.","commonSituations":"Occurs while running scripts/nasiko.js with invalid arguments, missing flags, or a failing external dependency; the guard at scripts/nasiko.js:36 aborts the command with this message.","solutions":["Pass a value immediately after the flag (e.g. `<flag> <value>`); the value was missing or consumed as another flag."],"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-14T00:17:10.932Z"}