mirror of
https://github.com/containers/podman.git
synced 2025-06-22 09:58:10 +08:00
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>
This commit is contained in:
@ -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")
|
||||
|
Reference in New Issue
Block a user