From 94de1e011e9c3182cb35f1b6b56408698362dfff Mon Sep 17 00:00:00 2001 From: Yen Chi Hsuan Date: Wed, 27 Aug 2014 04:01:56 +0800 Subject: [PATCH] Fix case issues in filenames --- .../flash/console/CommandLineArgumentParser.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/com/jpexs/decompiler/flash/console/CommandLineArgumentParser.java b/src/com/jpexs/decompiler/flash/console/CommandLineArgumentParser.java index 73209384c..26bd29d94 100644 --- a/src/com/jpexs/decompiler/flash/console/CommandLineArgumentParser.java +++ b/src/com/jpexs/decompiler/flash/console/CommandLineArgumentParser.java @@ -267,12 +267,12 @@ public class CommandLineArgumentParser { double zoom = 1; Selection selection = new Selection(); Selection selectionIds = new Selection(); - String nextParam; + String nextParam = null, nextParamOriginal = null; OUTER: while (true) { - nextParam = args.remove(); - if (nextParam != null) { - nextParam = nextParam.toLowerCase(); + nextParamOriginal = args.remove(); + if (nextParamOriginal != null) { + nextParam = nextParamOriginal.toLowerCase(); } switch (nextParam) { case "-selectid": @@ -357,7 +357,7 @@ public class CommandLineArgumentParser { printCmdLineUsage(); System.exit(0); } else if (args.isEmpty()) { - return nextParam; + return nextParamOriginal; // file names should be the original one } else { badArguments(); }