Cover --open=true equals-value parsing

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