public void parseArguments(final String[] rawArguments,final String propertiesFile,final boolean requirePropertiesFile) throws ArgumentException {
  Properties argumentProperties=null;
  try (final FileInputStream fis=new FileInputStream(propertiesFile)){
    final Properties p=new Properties();
    p.load(fis);
    argumentProperties=p;
  }
 catch (  final Exception e) {
    if (requirePropertiesFile) {
      final LocalizableMessage message=ERR_ARGPARSER_CANNOT_READ_PROPERTIES_FILE.get(propertiesFile,getExceptionMessage(e));
      throw new ArgumentException(message,e);
    }
  }
  parseArguments(rawArguments,argumentProperties);
}

public void parseArguments ( final String [ ] rawArguments , final String propertiesFile , final boolean requirePropertiesFile ) throws ArgumentException { Properties argumentProperties = null ; try ( final FileInputStream fis = new FileInputStream ( propertiesFile ) ) { final Properties p = new Properties ( ) ; p . load ( fis ) ; argumentProperties = p ; } catch ( final Exception e ) { if ( requirePropertiesFile ) { final LocalizableMessage message = ERR_ARGPARSER_CANNOT_READ_PROPERTIES_FILE . get ( propertiesFile , getExceptionMessage ( e ) ) ; throw new ArgumentException ( message , e ) ; } } parseArguments ( rawArguments , argumentProperties ) ; }
parses the provided set of arguments and updates the information associated with this parser accordingly . default values for unspecified arguments may be read from the specified properties file .
