mirror of
https://github.com/apache/poi.git
synced 2026-02-27 20:40:08 +08:00
Follow-up fix for r737173 and r737238 (patch 46544) - filename arg was not properly parsed.
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@737248 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
e99ac304fd
commit
ed4b7878bb
@ -89,10 +89,11 @@ public class ExcelExtractor extends POIOLE2TextExtractor implements org.apache.p
|
||||
break;
|
||||
}
|
||||
if ("-i".equals(arg)) {
|
||||
arg = args[++i]; // step to next arg
|
||||
if (i >= nArgs) {
|
||||
// step to next arg
|
||||
if (++i >= nArgs) {
|
||||
throw new CommandParseException("Expected filename after '-i'");
|
||||
}
|
||||
arg = args[i];
|
||||
if (inputFile != null) {
|
||||
throw new CommandParseException("Only one input file can be supplied");
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user