This is an automated email from the ASF dual-hosted git repository.

ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-cli.git


The following commit(s) were added to refs/heads/master by this push:
     new 79fe35b0 Better local variable name
79fe35b0 is described below

commit 79fe35b0b9054710420866f0b60774c37da9c84c
Author: Gary Gregory <garydgreg...@gmail.com>
AuthorDate: Tue Nov 12 09:04:04 2024 -0500

    Better local variable name
---
 .../org/apache/commons/cli/help/AbstractHelpFormatter.java     | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git 
a/src/main/java/org/apache/commons/cli/help/AbstractHelpFormatter.java 
b/src/main/java/org/apache/commons/cli/help/AbstractHelpFormatter.java
index d5e5ee62..137caa5d 100644
--- a/src/main/java/org/apache/commons/cli/help/AbstractHelpFormatter.java
+++ b/src/main/java/org/apache/commons/cli/help/AbstractHelpFormatter.java
@@ -423,7 +423,7 @@ public abstract class AbstractHelpFormatter {
         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
@@ -436,15 +436,15 @@ public abstract class AbstractHelpFormatter {
                     // 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();

Reply via email to