fix settings from args

This commit is contained in:
Jörg Prante 2021-10-15 10:31:27 +02:00
parent 3041e0580e
commit 5df5a3e2cc

View file

@ -160,8 +160,8 @@ public class ConfigLoader {
for (int i = 0; i < params.args.size() - 1; i++) {
String arg = params.args.get(i);
String s = params.directoryName != null ?
"--" + params.directoryName + "-" + fileNameWithoutSuffix + suffix :
"--" + fileNameWithoutSuffix + suffix;
"--" + params.directoryName + "-" + fileNameWithoutSuffix + "." + suffix :
"--" + fileNameWithoutSuffix + "." + suffix;
if (arg.equals(s)) {
return createSettingsFromReader(new StringReader(params.args.get(i + 1)), suffix);
}