Cover --web-port guard for -o=bool token

Co-authored-by: Theo Browne <[email protected]>
This commit is contained in:
Cursor AgentandTheo Browne committed 2026-02-10 02:41:41 +00:00
1 parent 5e8665bb13
commit cbb0476d29
1 file changed
+6
+6
View File
@@ -536,6 +536,12 @@ describe("parseCliOptions", () => {
);
});
it("treats -o=bool after --web-port as missing value", () => {
expect(() => parseCliOptions(["--web-port", "-o=0"], {}, "/workspace")).toThrow(
"Missing value for --web-port",
);
});
it("treats equals-style flag tokens after --web-port as missing values", () => {
expect(() =>
parseCliOptions(["--web-port", "--backend-port=7000"], {}, "/workspace"),