Preserve flag-based artifact regeneration arguments

This commit is contained in:
2026-08-29 20:43:44 +00:00
parent a9c5e4ad4e
commit 8657a28bdb
2 changed files with 30 additions and 1 deletions

View File

@@ -15,7 +15,7 @@ func RegenerateArtifacts(ctx context.Context, args []string, out io.Writer) erro
}
expanded := make([]string, 0, len(args)+5)
if len(args) > 0 {
if len(args) > 0 && !isCLIFlagToken(args[0]) {
expanded = append(expanded, args[0])
args = args[1:]
}