Fixed #1994 Replace command in commandline with three argument causing replacements file load

This commit is contained in:
Jindra Petřík
2023-03-22 20:17:52 +01:00
parent c1cad12a8a
commit a516236ee1
2 changed files with 3 additions and 1 deletions

View File

@@ -3143,7 +3143,7 @@ public class CommandLineArgumentParser {
File inFile = new File(args.pop());
File outFile = new File(args.pop());
if (args.size() == 3) {
if (args.size() == 1) {
System.out.println("Replacing - only single argument passed, taking it as file to load replacements from");
try {
List<String> lines = Files.readAllLines(Paths.get(args.pop()), StandardCharsets.UTF_8);