Fission-AI/OpenSpec · error · Error
Options --requirements and --requirement cannot be used toge
Error message
Options --requirements and --requirement cannot be used together
What it means
Error "Options --requirements and --requirement cannot be used together" thrown in Fission-AI/OpenSpec.
Source
Thrown at src/commands/spec.ts:130
choices: specIds.map(id => ({ name: id, value: id })),
});
} else {
throw new Error('Missing required argument <spec-id>');
}
}
const specPath = join(this.specsDir, specId, 'spec.md');
assertSpecPath(this.specsDir, specPath);
if (!existsSync(specPath)) {
// Root-aware callers get the absolute path; the cwd-based noun form
// keeps its historical forward-slash relative message on all platforms.
const displayPath = this.rootPath ? specPath : `openspec/specs/${specId}/spec.md`;
throw new Error(`Spec '${specId}' not found at ${displayPath}`);
}
if (options.json) {
if (options.requirements && options.requirement) {
throw new Error('Options --requirements and --requirement cannot be used together');
}
const parsed = parseSpecFromFile(this.specsDir, specPath, specId);
const filtered = filterSpec(parsed, options);
const output = {
id: specId,
title: parsed.name,
overview: parsed.overview,
requirementCount: filtered.requirements.length,
requirements: filtered.requirements,
metadata: parsed.metadata ?? { version: '1.0.0', format: 'openspec' as const },
...(options.rootOutput ? { root: options.rootOutput } : {}),
};
console.log(JSON.stringify(output, null, 2));
return;
}
printSpecTextRaw(this.specsDir, specPath);
}
}View on GitHub (pinned to 6926ccb18a)
When it happens
Trigger: Thrown at src/commands/spec.ts:130 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of Fission-AI/OpenSpec@6926ccb18a (2026-08-25).
Data as JSON: /api/errors/14f01e0648588888.
Report an issue: GitHub.