ci: don't swallow a following flag as --resolution value

Per PR review: `--resolution --duplicates N` stored the literal "--duplicates"
as the resolution. Only consume the next arg if it isn't another flag.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
Louis Erbkamm
2026-05-31 14:24:24 +02:00
parent 599b096bc2
commit a5f4621fda

View File

@@ -23,8 +23,10 @@ while (($#)); do
;;
--resolution)
shift
resolution="${1-}"
(($#)) && shift
# Only take the next arg if it's a real value, not another flag (or end of args).
if (($#)) && [[ "$1" != --* ]]; then
resolution="$1"; shift
fi
;;
*)
# Tolerate bare issue numbers as duplicates; reject anything else.