Skip to content

Commit 79fe35b

Browse files
committed
Better local variable name
1 parent 6ce2906 commit 79fe35b

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

src/main/java/org/apache/commons/cli/help/AbstractHelpFormatter.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,7 @@ protected String toSyntaxOptions(final Iterable<Option> options, final Function<
423423
final Collection<OptionGroup> processedGroups = new ArrayList<>();
424424
final List<Option> optList = sort(options);
425425
final StringBuilder buff = new StringBuilder();
426-
String pfx = "";
426+
String prefix = "";
427427
// iterate over the options
428428
for (final Option option : optList) {
429429
// get the next Option
@@ -436,15 +436,15 @@ protected String toSyntaxOptions(final Iterable<Option> options, final Function<
436436
// add the group to the processed list
437437
processedGroups.add(group);
438438
// add the usage clause
439-
buff.append(pfx).append(toSyntaxOptions(group));
440-
pfx = " ";
439+
buff.append(prefix).append(toSyntaxOptions(group));
440+
prefix = " ";
441441
}
442442
// otherwise the option was displayed in the group previously so ignore it.
443443
}
444444
// if the Option is not part of an OptionGroup
445445
else {
446-
buff.append(pfx).append(optionFormatBuilder.build(option).toSyntaxOption());
447-
pfx = " ";
446+
buff.append(prefix).append(optionFormatBuilder.build(option).toSyntaxOption());
447+
prefix = " ";
448448
}
449449
}
450450
return buff.toString();

0 commit comments

Comments
 (0)