From 81a80e7f060b3e0ed9b8b28e28ea95fcc9cfd27f Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Tue, 10 Feb 2026 02:20:15 +0000 Subject: [PATCH] Expand unknown argument parser coverage Co-authored-by: Theo Browne --- apps/t3/src/cli.test.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/apps/t3/src/cli.test.ts b/apps/t3/src/cli.test.ts index 05993c0551..d27db6bcde 100644 --- a/apps/t3/src/cli.test.ts +++ b/apps/t3/src/cli.test.ts @@ -568,6 +568,18 @@ describe("parseCliOptions", () => { "Unknown argument: --wat", ); }); + + it("throws for unknown equals-style arguments", () => { + expect(() => parseCliOptions(["--wat=value"], {}, "/workspace")).toThrow( + "Unknown argument: --wat=value", + ); + }); + + it("throws for unknown short arguments", () => { + expect(() => parseCliOptions(["-x"], {}, "/workspace")).toThrow( + "Unknown argument: -x", + ); + }); }); describe("readCliVersion", () => {