Fix Broken Validator Version Flag

I'm not sure if that is the way the version detection though IG should work. But that is my take on it.
This commit is contained in:
Alexander Kiel 2020-04-07 16:21:03 +02:00
parent be5089a80c
commit 73294ee4fe
1 changed files with 4 additions and 2 deletions

View File

@ -169,9 +169,11 @@ public class Params {
throw new Error("Specified " + args[i] + " without indicating ig file");
else {
String s = args[++i];
cliContext.setSv(Common.getVersionFromIGName(null, s));
if (cliContext.getSv() == null) {
String version = Common.getVersionFromIGName(null, s);
if (version == null) {
cliContext.addIg(s);
} else {
cliContext.setSv(version);
}
}
} else if (args[i].equals(MAP)) {