}); return (String[]) fileResult.toArray(new String[0]);
catch (OptionException err) { System.err.println(programName + ": " + err.getMessage()); String fmt; if (longOnly) fmt = Messages.getString("Parser.TryHelpShort"); else fmt = Messages.getString("Parser.TryHelpLong"); String msg = MessageFormat.format(fmt, new Object[] { programName }); System.err.println(programName + ": " + msg); System.exit(1); }
  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]);  }