From bc9f087bb459d26bdda92f40f198670a8278b772 Mon Sep 17 00:00:00 2001 From: Chris Wanstrath Date: Tue, 10 Mar 2026 16:44:59 -0700 Subject: [PATCH] Fix --path option default value initialization --- src/cli/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cli/index.ts b/src/cli/index.ts index 0bbc63b..e1c14e2 100755 --- a/src/cli/index.ts +++ b/src/cli/index.ts @@ -57,7 +57,7 @@ program .option("-u, --update", "Rewrite expected output in-place with actual output") .option("-k, --keep", "Keep temp directories after run") .option("--clean-env", "Start with empty environment") - .option("--path ", "Prepend to PATH (repeatable)", (val: string, acc: string[]) => [...acc, val]) + .option("--path ", "Prepend to PATH (repeatable)", (val: string, acc: string[]) => [...acc, val], []) .option("--timeout ", "Per-command timeout", "10s") .option("-v, --verbose", "Print each command as it runs") .option("--port-from ", "Auto-assign $PORT starting from ")