Claudenw commented on code in PR #233: URL: https://github.com/apache/commons-cli/pull/233#discussion_r1492094707
########## src/main/java/org/apache/commons/cli/DefaultParser.java: ########## @@ -228,6 +228,9 @@ private DefaultParser(final boolean allowPartialMatching, */ private void checkRequiredArgs() throws ParseException { if (currentOption != null && currentOption.requiresArg()) { + if (isJavaProperty(currentOption.getKey()) && currentOption.numberOfValues() == 1) { Review Comment: I missed `getValuesList()` when I was implementing. I saw that `getValues()` would return `null` and that threw me off. Good catch. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@commons.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org