--- ExcelExtractor.java.orig 2009-01-23 20:12:14 +0000 +++ ExcelExtractor.java.orig 2009-01-23 22:50:44 +0000 @@ -96,12 +96,13 @@ if (inputFile != null) { throw new CommandParseException("Only one input file can be supplied"); } - inputFile = new File(arg); + String inputFileName = args[i]; + inputFile = new File(inputFileName); if (!inputFile.exists()) { - throw new CommandParseException("Specified input file '" + arg + "' does not exist"); + throw new CommandParseException("Specified input file '" + inputFileName + "' does not exist"); } if (inputFile.isDirectory()) { - throw new CommandParseException("Specified input file '" + arg + "' is a directory"); + throw new CommandParseException("Specified input file '" + inputFileName + "' is a directory"); } continue; }