From 52371057cdd4084ac7c333d84b5f723029012855 Mon Sep 17 00:00:00 2001 From: baude Date: Thu, 30 Apr 2020 12:31:48 -0500 Subject: 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 --- cmd/podman/images/pull.go | 1 + 1 file changed, 1 insertion(+) (limited to 'cmd/podman/images/pull.go') 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`, } -- cgit v1.2.3-54-g00ecf