aboutsummaryrefslogtreecommitdiff
path: root/cmd/podman/images/pull.go
diff options
context:
space:
mode:
authorbaude <bbaude@redhat.com>2020-04-30 12:31:48 -0500
committerbaude <bbaude@redhat.com>2020-04-30 15:10:49 -0500
commit52371057cdd4084ac7c333d84b5f723029012855 (patch)
tree7961d31eb3722d4329be65205c6f8c2400ff965a /cmd/podman/images/pull.go
parent91a42fefcbd5372c8701f5a0f5d6da85216cc465 (diff)
downloadpodman-52371057cdd4084ac7c333d84b5f723029012855.tar.gz
podman-52371057cdd4084ac7c333d84b5f723029012855.tar.bz2
podman-52371057cdd4084ac7c333d84b5f723029012855.zip
fix commands without input
in cases where commands require input and we dont provide it, we often would segv. This can be attributed in many cases to the subcommand not picked up the cobra Args attribute or neither had them. Signed-off-by: baude <bbaude@redhat.com>
Diffstat (limited to 'cmd/podman/images/pull.go')
-rw-r--r--cmd/podman/images/pull.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/cmd/podman/images/pull.go b/cmd/podman/images/pull.go
index fead5f7ed..9f4cbc50e 100644
--- a/cmd/podman/images/pull.go
+++ b/cmd/podman/images/pull.go
@@ -45,6 +45,7 @@ var (
Short: pullCmd.Short,
Long: pullCmd.Long,
RunE: pullCmd.RunE,
+ Args: cobra.ExactArgs(1),
Example: `podman image pull imageName
podman image pull fedora:latest`,
}