From 60e6d7a2e8c7149af1607f98dfdc3049acc4b71f Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Tue, 10 Feb 2026 04:21:10 +0000 Subject: [PATCH] Cover trimmed case-insensitive short -o values 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 281444c546..2f5359afe0 100644 --- a/apps/t3/src/cli.test.ts +++ b/apps/t3/src/cli.test.ts @@ -111,6 +111,11 @@ describe("parseCliOptions", () => { expect(options.noOpen).toBe(true); }); + it("trims equals-style -o values before parsing", () => { + const options = parseCliOptions(["-o= ON "], { T3_NO_OPEN: "true" }, "/workspace"); + expect(options.noOpen).toBe(false); + }); + it("lets -o=true override truthy no-open environment defaults", () => { const options = parseCliOptions(["-o=true"], { T3_NO_OPEN: "yes" }, "/workspace"); expect(options.noOpen).toBe(false);