Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/cli/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@openrouter/spawn",
"version": "0.29.2",
"version": "0.29.3",
"type": "module",
"bin": {
"spawn": "cli.js"
Expand Down
9 changes: 6 additions & 3 deletions packages/cli/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1077,12 +1077,15 @@ async function main(): Promise<void> {
JSON.stringify({
status: "error",
error_code: "VALIDATION_ERROR",
error_message: "--headless and --dry-run cannot be used together",
error_message:
"--dry-run is not yet supported with --headless. Use --dry-run (interactive) or --headless (execution) separately.",
}),
);
} else {
console.error(pc.red("Error: --headless and --dry-run cannot be used together"));
console.error(`\nUse ${pc.cyan("--dry-run")} for previewing, or ${pc.cyan("--headless")} for execution.`);
console.error(pc.red("Error: --dry-run is not yet supported with --headless"));
console.error(
`\nUse ${pc.cyan("--dry-run")} for an interactive preview, or ${pc.cyan("--headless")} for unattended execution.`,
);
}
process.exit(3);
}
Expand Down
Loading