]> source.dussan.org Git - poi.git/commitdiff
Follow-up fix for r737173 (patch 46544) - filename arg was not properly parsed.
authorJosh Micich <josh@apache.org>
Fri, 23 Jan 2009 23:06:56 +0000 (23:06 +0000)
committerJosh Micich <josh@apache.org>
Fri, 23 Jan 2009 23:06:56 +0000 (23:06 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@737238 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/poi/hssf/extractor/ExcelExtractor.java

index c528be0bb7e6625e84e9880511b715eda0cf1ce0..8fab2f1072da92ea29b27e015c14738b5a8dd9f8 100644 (file)
@@ -89,7 +89,7 @@ public class ExcelExtractor extends POIOLE2TextExtractor implements org.apache.p
                                        break;
                                }
                                if ("-i".equals(arg)) {
-                                       i++; // step to next arg
+                                       arg = args[++i]; // step to next arg
                                        if (i >= nArgs) {
                                                throw new CommandParseException("Expected filename after '-i'");
                                        }