diff --git a/src/cli/index.ts b/src/cli/index.ts index 4405516..735b737 100755 --- a/src/cli/index.ts +++ b/src/cli/index.ts @@ -50,7 +50,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], [] as string[]) + .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("--parallel", "Run files in parallel") @@ -95,7 +95,7 @@ $ true const fileResult = await runFile(parsed, { cleanEnv: opts.cleanEnv ?? false, - pathDirs: opts.path.length > 0 ? opts.path : undefined, + pathDirs: opts.path, timeout: timeoutMs, verbose: opts.verbose ?? false, onCommand: opts.verbose