Remove unnecessary default accumulator and path check
This commit is contained in:
parent
ff088f1156
commit
e554cd36f1
|
|
@ -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 <path>", "Prepend <path> to PATH (repeatable)", (val: string, acc: string[]) => [...acc, val], [] as string[])
|
||||
.option("--path <path>", "Prepend <path> to PATH (repeatable)", (val: string, acc: string[]) => [...acc, val])
|
||||
.option("--timeout <dur>", "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
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user