{"record":{"id":"cade4175ec9b4cac","repo":"affaan-m/ECC","slug":"missing-value-for-install-dir","errorCode":null,"errorMessage":"Missing value for --install-dir.","messagePattern":"Missing value for --install-dir\\.","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"scripts/nasiko.js","lineNumber":93,"sourceCode":"    throw new Error('ECC_NASIKO_CLI_EXECUTABLE must be an absolute path.');\n  }\n  return candidate;\n}\n\nfunction readStatus(options = {}) {\n  const executable = resolveExecutable(options);\n  if (!executable) return { installed: false, qualified: false, version: null, executable: null };\n  return inspectInstalledNasiko(executable);\n}\n\nfunction parseStatusArguments(argumentsList) {\n  let options = { installDir: undefined, json: false };\n  for (let index = 0; index < argumentsList.length; index += 1) {\n    const argument = argumentsList[index];\n    if (argument === '--json') options = { ...options, json: true };\n    else if (argument === '--install-dir') {\n      const value = argumentsList[index + 1];\n      if (!value || value.startsWith('--')) throw new Error('Missing value for --install-dir.');\n      options = { ...options, installDir: validateInstallDirectory(value) };\n      index += 1;\n    } else throw new Error(`Unknown Nasiko status argument: ${argument}`);\n  }\n  return options;\n}\n\nasync function main(argumentsList = process.argv.slice(2)) {\n  const [command, ...rest] = argumentsList;\n  if (!command || command === '--help' || command === '-h' || command === 'help') {\n    process.stdout.write(helpText());\n    return 0;\n  }\n  if (command === 'status') {\n    const options = parseStatusArguments(rest);\n    const status = readStatus(options);\n    if (options.json) process.stdout.write(`${JSON.stringify(status, null, 2)}\\n`);\n    else process.stdout.write(status.qualified","sourceCodeStart":75,"sourceCodeEnd":111,"githubUrl":"https://github.com/affaan-m/ECC/blob/06c5e118c4d3e6c3b7f9445f973a2194c82de193/scripts/nasiko.js#L75-L111","documentation":"Thrown by parseStatusArguments in nasiko.js when --install-dir is the last argument or its next token starts with '--', i.e. the flag was given without a value. The status command needs the concrete directory to inspect.","triggerScenarios":"Triggered when nasiko.js rejects the current invocation: Missing value for --install-dir.","commonSituations":"Occurs while running scripts/nasiko.js with invalid arguments, missing flags, or a failing external dependency; the guard at scripts/nasiko.js:93 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"}