fileResult.add(fileArgument);
args = inArgs; for (currentIndex = 0; currentIndex < args.length; ++currentIndex) { if (args[currentIndex].length() == 0 || args[currentIndex].charAt(0) != '-' || "-".equals(args[currentIndex])) { files.notifyFile(args[currentIndex]); continue; } if ("--".equals(args[currentIndex])) break; if (args[currentIndex].charAt(1) == '-') handleLongOption(args[currentIndex], 2); else if (longOnly) handleLongOption(args[currentIndex], 1); else handleShortOptions(args[currentIndex]); }  for (++currentIndex; currentIndex < args.length; ++currentIndex) files.notifyFile(args[currentIndex]);  validate();
  public String[] parse(String[] inArgs)  {    final ArrayList fileResult = new ArrayList();    parse(inArgs, new FileArgumentCallback()    {      public void notifyFile(String fileArgument)      {        fileResult.add(fileArgument);      }    });    return (String[]) fileResult.toArray(new String[0]);  }