From 181f327d57ab84918572b69d2a039c43a8d7b871 Mon Sep 17 00:00:00 2001 From: Daniel J Walsh Date: Thu, 7 Mar 2019 16:44:39 -0500 Subject: More cleanup for failures on missing commands. Currently in podman if a user specifies a command that does not exist the tool shows the help information. This patch changes it to show information like: $ ./bin/podman foobar Error: unrecognized command 'podman foobar' Try 'podman --help' for more information. $ ./bin/podman volume foobar Error: unrecognized command `podman volume foobar` Try 'podman volume --help' for more information. $ ./bin/podman container foobar Error: unrecognized command `podman container foobar` Try 'podman container --help' for more information. Signed-off-by: Daniel J Walsh --- cmd/podman/pod.go | 1 + 1 file changed, 1 insertion(+) (limited to 'cmd/podman/pod.go') diff --git a/cmd/podman/pod.go b/cmd/podman/pod.go index 315b2e7bc..2d9bca21d 100644 --- a/cmd/podman/pod.go +++ b/cmd/podman/pod.go @@ -13,6 +13,7 @@ var podCommand = cliconfig.PodmanCommand{ Use: "pod", Short: "Manage pods", Long: podDescription, + RunE: commandRunE(), }, } -- cgit v1.2.3-54-g00ecf