From ab72130650c7a43421f35b754d51632e3df70966 Mon Sep 17 00:00:00 2001 From: Daniel J Walsh Date: Mon, 11 Jun 2018 15:51:38 -0400 Subject: Aliases do not work with IsSet Have to specify all names. Signed-off-by: Daniel J Walsh Closes: #933 Approved by: baude --- cmd/podman/commit.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cmd/podman/commit.go') diff --git a/cmd/podman/commit.go b/cmd/podman/commit.go index 90a003e8e..6da24fa92 100644 --- a/cmd/podman/commit.go +++ b/cmd/podman/commit.go @@ -79,7 +79,7 @@ func commitCmd(c *cli.Context) error { switch c.String("format") { case "oci": mimeType = buildah.OCIv1ImageManifest - if c.IsSet("message") { + if c.IsSet("message") || c.IsSet("m") { return errors.Errorf("messages are only compatible with the docker image format (-f docker)") } case "docker": @@ -89,7 +89,7 @@ func commitCmd(c *cli.Context) error { } container := args[0] reference := args[1] - if c.IsSet("change") { + if c.IsSet("change") || c.IsSet("c") { for _, change := range c.StringSlice("change") { splitChange := strings.Split(strings.ToUpper(change), "=") if !util.StringInSlice(splitChange[0], libpod.ChangeCmds) { -- cgit v1.2.3-54-g00ecf