Cover trimmed case-insensitive short -o values

Co-authored-by: Theo Browne <[email protected]>
This commit is contained in:
Cursor AgentandTheo Browne committed 2026-02-10 04:21:10 +00:00
1 parent df14dafe32
commit 60e6d7a2e8
1 file changed
+5
+5
View File
@@ -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);