We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7108379 commit 4c46459Copy full SHA for 4c46459
1 file changed
src/main/java/org/apache/commons/cli/Option.java
@@ -878,10 +878,7 @@ boolean requiresArg() {
878
if (optionalArg) {
879
return false;
880
}
881
- if (argCount == UNLIMITED_VALUES) {
882
- return values.isEmpty();
883
- }
884
- return acceptsArg();
+ return argCount == UNLIMITED_VALUES ? values.isEmpty() : acceptsArg();
885
886
887
/**
0 commit comments