summaryrefslogtreecommitdiff
path: root/cmd/podmanV2/images/exists.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/podmanV2/images/exists.go')
-rw-r--r--cmd/podmanV2/images/exists.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/podmanV2/images/exists.go b/cmd/podmanV2/images/exists.go
index 9d909394d..d35d6825e 100644
--- a/cmd/podmanV2/images/exists.go
+++ b/cmd/podmanV2/images/exists.go
@@ -13,10 +13,10 @@ var (
Use: "exists IMAGE",
Short: "Check if an image exists in local storage",
Long: `If the named image exists in local storage, podman image exists exits with 0, otherwise the exit code will be 1.`,
+ Args: cobra.ExactArgs(1),
+ RunE: exists,
Example: `podman image exists ID
podman image exists IMAGE && podman pull IMAGE`,
- Args: cobra.ExactArgs(1),
- RunE: exists,
}
)