private void parse ( String [ ] s ) { commandLineArgs = new Entry [ 0 ] ; for ( int i = 0 ; i < s . length ; ) { String next = ( i + 1 < s . length ) ? s [ i + 1 ] : null ; i += addArgument ( s [ i ] , next ) ; } }
Parse the command line arguments and extracts options . The current implementation allows the same command line instance to parse several argument lists the results will be merged .