Skip to content

Commit ded2696

Browse files
committed
Restore method order
1 parent d4cead7 commit ded2696

1 file changed

Lines changed: 17 additions & 17 deletions

File tree

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

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,23 @@ public final String getSyntaxPrefix() {
283283
*/
284284
protected abstract TableDefinition getTableDefinition(Iterable<Option> options);
285285

286+
/**
287+
* Prints the help for {@link Options} with the specified command line syntax.
288+
*
289+
* @param cmdLineSyntax the syntax for this application.
290+
* @param header the banner to display at the beginning of the help.
291+
* @param options the collection of {@link Option} objects to print.
292+
* @param footer the banner to display at the end of the help.
293+
* @param autoUsage whether to print an automatically generated usage statement.
294+
* @throws IOException If the output could not be written to the {@link HelpAppendable}.
295+
*/
296+
public void printHelp(final String cmdLineSyntax, final String header, final Iterable<Option> options, final String footer, final boolean autoUsage)
297+
throws IOException {
298+
Options optionsObject = new Options();
299+
options.forEach(optionsObject::addOption);
300+
printHelp(cmdLineSyntax, header, optionsObject, footer, autoUsage);
301+
}
302+
286303
/**
287304
* Prints the help for a collection of {@link Option}s with the specified command line syntax.
288305
*
@@ -312,23 +329,6 @@ public void printHelp(final String cmdLineSyntax, final String header, final Opt
312329
}
313330
}
314331

315-
/**
316-
* Prints the help for {@link Options} with the specified command line syntax.
317-
*
318-
* @param cmdLineSyntax the syntax for this application.
319-
* @param header the banner to display at the beginning of the help.
320-
* @param options the collection of {@link Option} objects to print.
321-
* @param footer the banner to display at the end of the help.
322-
* @param autoUsage whether to print an automatically generated usage statement.
323-
* @throws IOException If the output could not be written to the {@link HelpAppendable}.
324-
*/
325-
public void printHelp(final String cmdLineSyntax, final String header, final Iterable<Option> options, final String footer, final boolean autoUsage)
326-
throws IOException {
327-
Options optionsObject = new Options();
328-
options.forEach(optionsObject::addOption);
329-
printHelp(cmdLineSyntax, header, optionsObject, footer, autoUsage);
330-
}
331-
332332
/**
333333
* Prints the option table for a collection of {@link Option} objects to the {@link HelpAppendable}.
334334
*

0 commit comments

Comments
 (0)