We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e15ffc1 commit 0e1b14dCopy full SHA for 0e1b14d
1 file changed
src/main/java/org/apache/commons/cli/Option.java
@@ -820,28 +820,22 @@ void processValue(final String value) {
820
if (hasValueSeparator()) {
821
// get the separator character
822
final char sep = getValueSeparator();
823
-
824
// store the index for the value separator
825
int index = add.indexOf(sep);
826
827
// while there are more value separators
828
while (index != -1) {
829
// next value to be added
830
if (values.size() == argCount - 1) {
831
break;
832
}
833
834
// store
835
add(add.substring(0, index));
836
837
// parse
838
add = add.substring(index + 1);
839
840
// get new index
841
index = add.indexOf(sep);
842
843
844
845
// store the actual value or the last value that has been parsed
846
add(add);
847
0 commit comments