Cover --cwd missing-value guard for --open token

Co-authored-by: Theo Browne <[email protected]>
This commit is contained in:
Cursor AgentandTheo Browne committed 2026-02-10 01:58:21 +00:00
1 parent ed8e29dedc
commit e61ed3ce38
1 file changed
+6
+6
View File
@@ -473,6 +473,12 @@ describe("parseCliOptions", () => {
);
});
it("treats --open after --cwd as missing value", () => {
expect(() => parseCliOptions(["--cwd", "--open"], {}, "/workspace")).toThrow(
"Missing value for --cwd",
);
});
it("treats end-of-options marker after --cwd as missing value", () => {
expect(() => parseCliOptions(["--cwd", "--"], {}, "/workspace")).toThrow(
"Missing value for --cwd",