mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-06-01 10:55:12 +00:00
show warning on invalid boolean config
This commit is contained in:
@@ -723,10 +723,14 @@ public class CommandLineArgumentParser {
|
||||
String value = cp[1];
|
||||
for (ConfigurationItem<Boolean> item : commandlineConfigBoolean) {
|
||||
if (key.toLowerCase().equals(item.getName().toLowerCase())) {
|
||||
Boolean bValue = parseBooleanConfigValue(value);
|
||||
if (bValue != null) {
|
||||
System.out.println("Config " + item.getName() + " set to " + bValue);
|
||||
item.set(bValue);
|
||||
if (value != null) {
|
||||
Boolean bValue = parseBooleanConfigValue(value);
|
||||
if (bValue != null) {
|
||||
System.out.println("Config " + item.getName() + " set to " + bValue);
|
||||
item.set(bValue);
|
||||
} else {
|
||||
System.out.println("Invalid config value for " + item.getName() + ": " + value);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1462,6 +1466,8 @@ public class CommandLineArgumentParser {
|
||||
System.exit(1);
|
||||
}
|
||||
|
||||
Statistics.print(stat);
|
||||
|
||||
long stopTime = System.currentTimeMillis();
|
||||
long time = stopTime - startTime;
|
||||
System.out.println("Export finished. Total export time: " + Helper.formatTimeSec(time));
|
||||
|
||||
Reference in New Issue
Block a user