@ SuppressFBWarnings ( justification = "Accepting that this is a bad practice - used a Boolean as we needed three states" , value = { "NP_BOOLEAN_RETURN_NULL" } ) public Boolean getBooleanArgument ( String argument ) { if ( line != null && line . hasOption ( argument ) ) { final String value = line . getOptionValue ( argument ) ; if ( value != null ) { return Boolean . parseBoolean ( value ) ; } } return null ; }
Returns the argument boolean value .