Skip to content

Commit

Permalink
Better local variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
garydgregory committed Nov 12, 2024
1 parent 6ce2906 commit 79fe35b
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,7 @@ protected String toSyntaxOptions(final Iterable<Option> options, final Function<
final Collection<OptionGroup> processedGroups = new ArrayList<>();
final List<Option> optList = sort(options);
final StringBuilder buff = new StringBuilder();
String pfx = "";
String prefix = "";
// iterate over the options
for (final Option option : optList) {
// get the next Option
Expand All @@ -436,15 +436,15 @@ protected String toSyntaxOptions(final Iterable<Option> options, final Function<
// add the group to the processed list
processedGroups.add(group);
// add the usage clause
buff.append(pfx).append(toSyntaxOptions(group));
pfx = " ";
buff.append(prefix).append(toSyntaxOptions(group));
prefix = " ";
}
// otherwise the option was displayed in the group previously so ignore it.
}
// if the Option is not part of an OptionGroup
else {
buff.append(pfx).append(optionFormatBuilder.build(option).toSyntaxOption());
pfx = " ";
buff.append(prefix).append(optionFormatBuilder.build(option).toSyntaxOption());
prefix = " ";
}
}
return buff.toString();
Expand Down

0 comments on commit 79fe35b

Please sign in to comment.