public static boolean validOptions(final String options[][], DocErrorReporter reporter) {

        final boolean toReturn = Standard.validOptions(options, reporter);

        if(options == null || options.length == 0) {
            eventSequence.add("validOptions (none supplied): " + toReturn);
        } else{
            for (int i = 0; i < options.length; i++) {

                final String thisOption = Arrays.stream(options[i]).reduce((l, r) -> l + " " + r).orElse("<none>");
                eventSequence.add("validOptions [" + i + " / " + options.length + "] (" + thisOption + "): " + toReturn);
            }
        }

        // All Done.
        return toReturn;
    }
public static boolean validOptions(final String options[][], DocErrorReporter reporter) {

        final boolean toReturn = Standard.validOptions(options, reporter);

        if(options == null || options.length == 0) {
            eventSequence.add("validOptions (none supplied): " + toReturn);
        } else{
            for (int i = 0; i < options.length; i++) {

                final String thisOption = Arrays.stream(options[i]).reduce((l, r) -> l + " " + r).orElse("<none>");
                eventSequence.add("validOptions [" + i + " / " + options.length + "] (" + thisOption + "): " + toReturn);
            }
        }

        
        return toReturn;
    }
public static boolean validOptions ( final String options [ ] [ ] , DocErrorReporter reporter ) { final boolean toReturn = Standard . validOptions ( options , reporter ) ; if ( options == null || options . length == 0 ) { eventSequence . add ( "validOptions (none supplied): " + toReturn ) ; } else { for ( int i = 0 ; i < options . length ; i ++ ) { final String thisOption = Arrays . stream ( options [ i ] ) . reduce ( ( l , r ) -> l + " " + r ) . orElse ( "<none>" ) ; eventSequence . add ( "validOptions [" + i + " / " + options . length + "] (" + thisOption + "): " + toReturn ) ; } } // All Done. return toReturn ; }
Check that options have the correct arguments.
<p>
This method is not required, but is recommended,
as every option will be considered valid if this method
is not present.  It will default gracefully (to true)
if absent.
<p>
Printing option related error messages (using the provided
DocErrorReporter) is the responsibility of this method.

@return true if the options are valid.
Check that options have the correct arguments . <p > This method is not required but is recommended as every option will be considered valid if this method is not present . It will default gracefully ( to true ) if absent . <p > Printing option related error messages ( using the provided DocErrorReporter ) is the responsibility of this method .