You've already forked compose-cli
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:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user