From 0860f9d3a79380e9beb9fa4c61c94dc168474ffc Mon Sep 17 00:00:00 2001 From: zhaog100 Date: Wed, 18 Mar 2026 10:17:17 +0800 Subject: [PATCH] fix: support comma-separated inputs in list file (-l option) The -u option correctly handles comma-separated targets via CommaSeparatedStringSliceOptions, but the -l option treated each line as a single target. This change splits each line by comma, matching the behavior of -u. --- internal/runner/runner.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/internal/runner/runner.go b/internal/runner/runner.go index 91e80136..fdd50d5a 100644 --- a/internal/runner/runner.go +++ b/internal/runner/runner.go @@ -440,7 +440,11 @@ func (r *Runner) normalizeAndQueueInputs(inputs chan taskInput) error { for scanner.Scan() { text := scanner.Text() if text != "" { - r.processInputItem(text, inputs) + for _, item := range strings.Split(text, ",") { + if item != "" { + r.processInputItem(item, inputs) + } + } } } }