From 91ae38092bcd3ace67a6681ed0f4d2fc1e2b8c65 Mon Sep 17 00:00:00 2001 From: Matthew Heon Date: Tue, 19 Feb 2019 15:03:56 -0500 Subject: Podman pod create now errors on receiving CLI args It has never accepted arguments, so we should error when passed args we will never use. Signed-off-by: Matthew Heon --- cmd/podman/pod_create.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'cmd/podman/pod_create.go') diff --git a/cmd/podman/pod_create.go b/cmd/podman/pod_create.go index 0a0b86aab..d5ca5e13a 100644 --- a/cmd/podman/pod_create.go +++ b/cmd/podman/pod_create.go @@ -59,6 +59,10 @@ func podCreateCmd(c *cliconfig.PodCreateValues) error { var options []libpod.PodCreateOption var err error + if len(c.InputArgs) > 0 { + return errors.New("podman pod create does not accept any arguments") + } + runtime, err := libpodruntime.GetRuntime(&c.PodmanCommand) if err != nil { return errors.Wrapf(err, "error creating libpod runtime") -- cgit v1.2.3-54-g00ecf