public String [ ] [ ] load ( String [ ] [ ] options , DocErrorReporter errorReporter ) { LinkedList < String [ ] > optionsList = new LinkedList <> ( Arrays . asList ( options ) ) ; Iterator < String [ ] > optionsIter = optionsList . iterator ( ) ; while ( optionsIter . hasNext ( ) ) { String [ ] opt = optionsIter . next ( ) ; if ( ! handleOption ( optionsIter , opt , errorReporter ) ) { return null ; } } if ( pegdownExtensions == null ) { setPegdownExtensions ( DEFAULT_PEGDOWN_EXTENSIONS ) ; } return optionsList . toArray ( new String [ optionsList . size ( ) ] [ ] ) ; }
Loads the options from the command line .