summaryrefslogtreecommitdiff
path: root/cmd/podman/commit.go
diff options
context:
space:
mode:
authorDaniel J Walsh <dwalsh@redhat.com>2018-06-11 15:51:38 -0400
committerAtomic Bot <atomic-devel@projectatomic.io>2018-06-12 00:47:56 +0000
commitab72130650c7a43421f35b754d51632e3df70966 (patch)
tree5bbeb05b2e2a5f61566be4f052ac79d0ace0c94a /cmd/podman/commit.go
parent9b72746f9a3f0f76e6777ca21032dfad33d1bc72 (diff)
downloadpodman-ab72130650c7a43421f35b754d51632e3df70966.tar.gz
podman-ab72130650c7a43421f35b754d51632e3df70966.tar.bz2
podman-ab72130650c7a43421f35b754d51632e3df70966.zip
Aliases do not work with IsSet
Have to specify all names. Signed-off-by: Daniel J Walsh <dwalsh@redhat.com> Closes: #933 Approved by: baude
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) {