@ SuppressWarnings ( "unchecked" ) private void parseOptionsFromFile ( String optionFileName ) throws ParseException { List < String > options = OptionsFileLoader . loadOptions ( optionFileName ) ; options . addAll ( commandLine . getArgList ( ) ) ; commandLine = cliParser . parse ( cliOptions , options . toArray ( new String [ 0 ] ) ) ; }
Parse options from a file . Reload commandLine that after calling this method contains both options coming from the command line and from the file .