wrong global --bundle/--dab input #198

This commit is contained in:
Chris Baumbauer 2016-10-19 09:29:04 -07:00
parent b97760a537
commit d3142c7435

View File

@ -71,7 +71,7 @@ func validateFlags(c *cli.Context, opt *kobject.ConvertOptions) {
opt.InputFile = dabFile
}
if len(dabFile) > 0 && len(opt.InputFile) > 0 && opt.InputFile != DefaultComposeFile {
if len(dabFile) > 0 && c.GlobalIsSet("file") {
logrus.Fatalf("Error: 'compose' file and 'dab' file cannot be specified at the same time")
}
}