Skip to content

Commit 7025c09

Browse files
committed
chore: raise on jobs < 1
1 parent 8383888 commit 7025c09

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

vesskel/cli.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,8 @@ def _run_batch(args: argparse.Namespace) -> int:
175175

176176
safe_names = _compute_safe_names(input_paths)
177177
jobs = (os.cpu_count() or 1) if args.jobs == 0 else args.jobs
178+
if jobs < 1:
179+
raise ValueError("--jobs must be 0 (auto) or a positive integer")
178180
total = len(input_paths)
179181

180182
if jobs == 1:

0 commit comments

Comments
 (0)