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

commit ded2696f29a6ad3416c2da81163874a5b322a7c9
Author: Gary Gregory <[email protected]>
AuthorDate: Wed Nov 5 07:29:09 2025 -0500

    Restore method order
---
 .../commons/cli/help/AbstractHelpFormatter.java    | 34 +++++++++++-----------
 1 file changed, 17 insertions(+), 17 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 cc06c90a..c9948dc2 100644
--- a/src/main/java/org/apache/commons/cli/help/AbstractHelpFormatter.java
+++ b/src/main/java/org/apache/commons/cli/help/AbstractHelpFormatter.java
@@ -283,6 +283,23 @@ public abstract class AbstractHelpFormatter {
      */
     protected abstract TableDefinition getTableDefinition(Iterable<Option> 
options);
 
+    /**
+     * Prints the help for {@link Options} with the specified command line 
syntax.
+     *
+     * @param cmdLineSyntax the syntax for this application.
+     * @param header        the banner to display at the beginning of the help.
+     * @param options       the collection of {@link Option} objects to print.
+     * @param footer        the banner to display at the end of the help.
+     * @param autoUsage     whether to print an automatically generated usage 
statement.
+     * @throws IOException If the output could not be written to the {@link 
HelpAppendable}.
+     */
+    public void printHelp(final String cmdLineSyntax, final String header, 
final Iterable<Option> options, final String footer, final boolean autoUsage)
+            throws IOException {
+        Options optionsObject = new Options();
+        options.forEach(optionsObject::addOption);
+        printHelp(cmdLineSyntax, header, optionsObject, footer, autoUsage);
+    }
+
     /**
      * Prints the help for a collection of {@link Option}s with the specified 
command line syntax.
      *
@@ -312,23 +329,6 @@ public abstract class AbstractHelpFormatter {
         }
     }
 
-    /**
-     * Prints the help for {@link Options} with the specified command line 
syntax.
-     *
-     * @param cmdLineSyntax the syntax for this application.
-     * @param header        the banner to display at the beginning of the help.
-     * @param options       the collection of {@link Option} objects to print.
-     * @param footer        the banner to display at the end of the help.
-     * @param autoUsage     whether to print an automatically generated usage 
statement.
-     * @throws IOException If the output could not be written to the {@link 
HelpAppendable}.
-     */
-    public void printHelp(final String cmdLineSyntax, final String header, 
final Iterable<Option> options, final String footer, final boolean autoUsage)
-            throws IOException {
-        Options optionsObject = new Options();
-        options.forEach(optionsObject::addOption);
-        printHelp(cmdLineSyntax, header, optionsObject, footer, autoUsage);
-    }
-
     /**
      * Prints the option table for a collection of {@link Option} objects to 
the {@link HelpAppendable}.
      *

Reply via email to