1
0
mirror of https://github.com/docker/compose-cli.git synced 2026-10-23 18:09:06 +03:00

fix: ignore short flags too when finding pulled image

Signed-off-by: Yves Brissaud <yves.brissaud@docker.com>
This commit is contained in:
Yves Brissaud
2023-06-12 15:41:29 +02:00
parent 1ceb12ae77
commit fac770ab1d

View File

@@ -64,7 +64,7 @@ func pulledImageFromArgs(args []string) string {
pull = true
continue
}
if pull && !strings.HasPrefix(a, "--") {
if pull && !strings.HasPrefix(a, "-") {
image = a
break
}