From ea69ec16fe391c784c97988a2d1bd5142bfff02d Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Tue, 10 Feb 2026 01:23:01 +0000 Subject: [PATCH] Cover equals-style dash-prefixed cwd 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 4b7b971fd8..3a7c14c9c2 100644 --- a/apps/t3/src/cli.test.ts +++ b/apps/t3/src/cli.test.ts @@ -313,6 +313,11 @@ describe("parseCliOptions", () => { expect(options.launchCwd).toBe(path.resolve("/workspace", "-project")); }); + it("accepts dash-prefixed cwd values with equals-style --cwd argument", () => { + const options = parseCliOptions(["--cwd=-project"], {}, "/workspace"); + expect(options.launchCwd).toBe(path.resolve("/workspace", "-project")); + }); + it("treats known flags after --cwd as missing values", () => { expect(() => parseCliOptions(["--cwd", "--help"], {}, "/workspace")).toThrow( "Missing value for --cwd",