{"record":{"id":"7b9d192bfba131b4","repo":"affaan-m/ECC","slug":"unknown-nasiko-status-argument-argument","errorCode":null,"errorMessage":"Unknown Nasiko status argument: ${argument}","messagePattern":"Unknown Nasiko status argument: (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"scripts/nasiko.js","lineNumber":96,"sourceCode":"}\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\n      ? `Qualified Nasiko ${status.version} is installed at ${status.executable}.\\n`\n      : status.installed\n        ? `An unqualified Nasiko file exists at ${status.executable}; it was not executed.\\n`","sourceCodeStart":78,"sourceCodeEnd":114,"githubUrl":"https://github.com/affaan-m/ECC/blob/06c5e118c4d3e6c3b7f9445f973a2194c82de193/scripts/nasiko.js#L78-L114","documentation":"Thrown by parseStatusArguments when an argument is neither --json, --install-dir, nor that flag's value. The status subcommand accepts no other options, so anything else is rejected as unknown.","triggerScenarios":"Triggered when nasiko.js rejects the current invocation: Unknown Nasiko status 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:96 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-14T00:17:10.932Z"}