static void parseData ( String [ ] args , BiConsumer < String , Boolean > data ) { CommandLine commandLine = parseCommandLine ( args ) ; Object value = commandLine . optionValue ( "d" ) ; if ( value != null ) { data . accept ( value . toString ( ) , commandLine . hasOption ( "x" ) ) ; } else { data . accept ( null , commandLine . hasOption ( "x" ) ) ; } }
Parse entries .