Skip to content
This repository was archived by the owner on Nov 27, 2023. It is now read-only.

Commit fac770a

Browse files
committed
fix: ignore short flags too when finding pulled image
Signed-off-by: Yves Brissaud <yves.brissaud@docker.com>
1 parent 1ceb12a commit fac770a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cli/mobycli/scout_suggest.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ func pulledImageFromArgs(args []string) string {
6464
pull = true
6565
continue
6666
}
67-
if pull && !strings.HasPrefix(a, "--") {
67+
if pull && !strings.HasPrefix(a, "-") {
6868
image = a
6969
break
7070
}

0 commit comments

Comments
 (0)