private void handleOption(Option option) throws CLIException { // check the previous option before handling the next one checkRequiredValues(); updateRequiredOptions(option); //IMPORTANT for flag we must set this attributes as it will determine the value out of it. commandLine.setSeenInCommandLine(option); if (commandLine.acceptMoreValues(option)) { current = option; } else { current = null; } }
private void handleOption(Option option) throws CLIException { // check the previous option before handling the next one checkRequiredValues(); updateRequiredOptions(option); //IMPORTANT for flag we must set this attributes as it will determine the value out of it. commandLine.setSeenInCommandLine(option); if (commandLine.acceptMoreValues(option)) { current = option; } else { current = null; } }