From: Josh Micich Date: Fri, 23 Jan 2009 23:06:56 +0000 (+0000) Subject: Follow-up fix for r737173 (patch 46544) - filename arg was not properly parsed. X-Git-Tag: REL_3_5_BETA5~21 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=e99ac304fd4f09c8a1ed47c72441889a73ee0002;p=poi.git Follow-up fix for r737173 (patch 46544) - filename arg was not properly parsed. git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@737238 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/java/org/apache/poi/hssf/extractor/ExcelExtractor.java b/src/java/org/apache/poi/hssf/extractor/ExcelExtractor.java index c528be0bb7..8fab2f1072 100644 --- a/src/java/org/apache/poi/hssf/extractor/ExcelExtractor.java +++ b/src/java/org/apache/poi/hssf/extractor/ExcelExtractor.java @@ -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'"); }