Skip to content

Commit 566dcde

Browse files
committed
Undo Changes mistakenly Done to Make it like the Cloned Repo
1 parent 74ac95c commit 566dcde

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

src/main/java/org/apache/commons/cli/CommandLine.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -358,11 +358,11 @@ public Object getParsedOptionValue(final Option option) throws ParseException {
358358
if (option == null) {
359359
return null;
360360
}
361-
final String optionValue = getOptionValue(option);
362-
if (optionValue == null) {
361+
final String res = getOptionValue(option);
362+
if (res == null) {
363363
return null;
364364
}
365-
return TypeHandler.createValue(optionValue, option.getType());
365+
return TypeHandler.createValue(res, option.getType());
366366
}
367367

368368
/**

src/main/java/org/apache/commons/cli/HelpFormatter.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -719,11 +719,11 @@ protected StringBuffer renderOptions(final StringBuffer sb, final int width, fin
719719
max = Math.max(optBuf.length(), max);
720720
}
721721

722-
int optionIndex = 0;
722+
int x = 0;
723723

724724
for (final Iterator<Option> it = optList.iterator(); it.hasNext();) {
725725
final Option option = it.next();
726-
final StringBuilder optBuf = new StringBuilder(prefixList.get(optionIndex++).toString());
726+
final StringBuilder optBuf = new StringBuilder(prefixList.get(x++).toString());
727727

728728
if (optBuf.length() < max) {
729729
optBuf.append(createPadding(max - optBuf.length()));

0 commit comments

Comments
 (0)