Merge pull request #211 from procrypt/unknown_args

remove unknown args and added tests
This commit is contained in:
Tomas Kral authored and GitHub committed 2016-10-26 14:37:08 +02:00
commit 414645d73c
2 files changed
+10

No files matched your search

+4
View File
@@ -74,6 +74,10 @@ func validateFlags(c *cli.Context, opt *kobject.ConvertOptions) {
if len(dabFile) > 0 && c.GlobalIsSet("file") {
logrus.Fatalf("Error: 'compose' file and 'dab' file cannot be specified at the same time")
}
if len(c.Args()) != 0 {
logrus.Fatal("Unknown Argument(s): ", strings.Join(c.Args(), ","))
}
}
func validateControllers(opt *kobject.ConvertOptions) {