Cover --open=off equals-value parsing

Co-authored-by: Theo Browne <[email protected]>
This commit is contained in:
Cursor AgentandTheo Browne committed 2026-02-10 02:03:10 +00:00
1 parent 5bb68e21b5
commit 35e381dcbf
1 file changed
+5
+5
View File
@@ -103,6 +103,11 @@ describe("parseCliOptions", () => {
expect(options.noOpen).toBe(false);
});
it("supports equals-style --open off values", () => {
const options = parseCliOptions(["--open=off"], {}, "/workspace");
expect(options.noOpen).toBe(true);
});
it("respects last flag when combining --open and --no-open", () => {
const openThenNoOpen = parseCliOptions(["--open", "--no-open"], {}, "/workspace");
expect(openThenNoOpen.noOpen).toBe(true);