From 2c885142b20da75ea81a60d71cedc4e646976504 Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Tue, 10 Feb 2026 02:09:24 +0000 Subject: [PATCH] Cover trimmed equals-style --open parsing Co-authored-by: Theo Browne --- apps/t3/src/cli.test.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/apps/t3/src/cli.test.ts b/apps/t3/src/cli.test.ts index 3651f883f4..1d9acec4e8 100644 --- a/apps/t3/src/cli.test.ts +++ b/apps/t3/src/cli.test.ts @@ -108,6 +108,11 @@ describe("parseCliOptions", () => { expect(options.noOpen).toBe(true); }); + it("trims equals-style --open values before parsing", () => { + 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);