From fac770ab1d65ea7ac0dd89a45e39bad06b7602eb Mon Sep 17 00:00:00 2001 From: Yves Brissaud Date: Mon, 12 Jun 2023 15:41:29 +0200 Subject: [PATCH] fix: ignore short flags too when finding pulled image Signed-off-by: Yves Brissaud --- cli/mobycli/scout_suggest.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/mobycli/scout_suggest.go b/cli/mobycli/scout_suggest.go index 2252d8a6..be959646 100644 --- a/cli/mobycli/scout_suggest.go +++ b/cli/mobycli/scout_suggest.go @@ -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 }