summaryrefslogtreecommitdiff
path: root/cmd/podman/commit.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/podman/commit.go')
-rw-r--r--cmd/podman/commit.go4
1 files changed, 2 insertions, 2 deletions
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) {