From d95e2fc125141d078dd858de04c2ee5e5c9616d4 Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Tue, 10 Feb 2026 02:35:33 +0000 Subject: [PATCH] Cover empty equals-style --open parsing errors Co-authored-by: Theo Browne --- apps/t3/src/cli.test.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/apps/t3/src/cli.test.ts b/apps/t3/src/cli.test.ts index 1a55a8bbff..c7930cd129 100644 --- a/apps/t3/src/cli.test.ts +++ b/apps/t3/src/cli.test.ts @@ -151,6 +151,12 @@ describe("parseCliOptions", () => { ); }); + it("throws for empty equals-style --open values", () => { + expect(() => parseCliOptions(["--open="], {}, "/workspace")).toThrow( + "Invalid value for --open", + ); + }); + it("supports falsey equals-style --no-open values", () => { const options = parseCliOptions(["--no-open=0"], {}, "/workspace"); expect(options.noOpen).toBe(false);