diff --git a/cli/app/app.go b/cli/app/app.go index d927ca51..020f8cdd 100644 --- a/cli/app/app.go +++ b/cli/app/app.go @@ -117,9 +117,14 @@ func Convert(c *cli.Context) { createRC := c.BoolT("replicationcontroller") createChart := c.BoolT("chart") replicas := c.Int("replicas") - singleOutput := len(outFile) != 0 || toStdout + singleOutput := len(outFile) != 0 || outFile == "-" || toStdout createDeploymentConfig := c.BoolT("deploymentconfig") + if outFile == "-" { + toStdout = true + outFile = "" + } + // Create Deployment by default if no controller has be set if !createD && !createDS && !createRC && !createDeploymentConfig { createD = true