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

@@ -4,6 +4,7 @@ All notable changes to this project will be documented in this file.
## [Unreleased]
### Fixed
- [#1993] Incorrect scroll position causing shapes to be hidden
- [#1994] Replace command in commandline with three argument causing replacements file load
## [18.4.0] - 2023-03-19
### Added
@@ -3014,6 +3015,7 @@ All notable changes to this project will be documented in this file.
[alpha 8]: https://github.com/jindrapetrik/jpexs-decompiler/compare/alpha7...alpha8
[alpha 7]: https://github.com/jindrapetrik/jpexs-decompiler/releases/tag/alpha7
[#1993]: https://www.free-decompiler.com/flash/issues/1993
[#1994]: https://www.free-decompiler.com/flash/issues/1994
[#1888]: https://www.free-decompiler.com/flash/issues/1888
[#1892]: https://www.free-decompiler.com/flash/issues/1892
[#355]: https://www.free-decompiler.com/flash/issues/355

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);