Fix --path option default value initialization

This commit is contained in:
Chris Wanstrath 2026-03-10 16:44:59 -07:00
parent 11ab691577
commit bc9f087bb4

View File

@ -57,7 +57,7 @@ program
.option("-u, --update", "Rewrite expected output in-place with actual output") .option("-u, --update", "Rewrite expected output in-place with actual output")
.option("-k, --keep", "Keep temp directories after run") .option("-k, --keep", "Keep temp directories after run")
.option("--clean-env", "Start with empty environment") .option("--clean-env", "Start with empty environment")
.option("--path <path>", "Prepend <path> to PATH (repeatable)", (val: string, acc: string[]) => [...acc, val]) .option("--path <path>", "Prepend <path> to PATH (repeatable)", (val: string, acc: string[]) => [...acc, val], [])
.option("--timeout <dur>", "Per-command timeout", "10s") .option("--timeout <dur>", "Per-command timeout", "10s")
.option("-v, --verbose", "Print each command as it runs") .option("-v, --verbose", "Print each command as it runs")
.option("--port-from <n>", "Auto-assign $PORT starting from <n>") .option("--port-from <n>", "Auto-assign $PORT starting from <n>")