aboutsummaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorMatthew Heon <matthew.heon@pm.me>2019-02-19 15:03:56 -0500
committerMatthew Heon <matthew.heon@pm.me>2019-02-19 15:03:56 -0500
commit91ae38092bcd3ace67a6681ed0f4d2fc1e2b8c65 (patch)
treef477b13822d2cba785488b3e93e508960a4ed830 /cmd
parent82ae36c15726a4adb3242938ed2396be30bd479a (diff)
downloadpodman-91ae38092bcd3ace67a6681ed0f4d2fc1e2b8c65.tar.gz
podman-91ae38092bcd3ace67a6681ed0f4d2fc1e2b8c65.tar.bz2
podman-91ae38092bcd3ace67a6681ed0f4d2fc1e2b8c65.zip
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 <matthew.heon@pm.me>
Diffstat (limited to 'cmd')
-rw-r--r--cmd/podman/pod_create.go4
1 files changed, 4 insertions, 0 deletions
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")