Expand unknown argument parser coverage

Co-authored-by: Theo Browne <[email protected]>
This commit is contained in:
Cursor AgentandTheo Browne committed 2026-02-10 02:20:15 +00:00
1 parent 48d5f7263c
commit 81a80e7f06
1 file changed
+12
+12
View File
@@ -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", () => {