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:
parent
be5089a80c
commit
73294ee4fe
|
@ -169,9 +169,11 @@ public class Params {
|
||||||
throw new Error("Specified " + args[i] + " without indicating ig file");
|
throw new Error("Specified " + args[i] + " without indicating ig file");
|
||||||
else {
|
else {
|
||||||
String s = args[++i];
|
String s = args[++i];
|
||||||
cliContext.setSv(Common.getVersionFromIGName(null, s));
|
String version = Common.getVersionFromIGName(null, s);
|
||||||
if (cliContext.getSv() == null) {
|
if (version == null) {
|
||||||
cliContext.addIg(s);
|
cliContext.addIg(s);
|
||||||
|
} else {
|
||||||
|
cliContext.setSv(version);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else if (args[i].equals(MAP)) {
|
} else if (args[i].equals(MAP)) {
|
||||||
|
|
Loading…
Reference in New Issue