You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Don't mix builder patterns
- Reduce new public API footprint
- Remove unused elements
- Refactor magic number into a constant
- Javadoc package info
- Don't need both an array constant and a set constant
- Make that set immutable
- Javadoc semantic fixes
- Use same naming pattern as Java: indexOf...
- Don't need Javadoc since tag on a method when the class has it for the
same version
- Rename example package
- Reuse StringUtils from tests
- Fix generics compiler warnings in tests
- Remove dangling commas in array declarations
@@ -16,8 +16,6 @@ Licensed to the Apache Software Foundation (ASF) under one or more
16
16
*/
17
17
packageorg.apache.commons.cli.help;
18
18
19
-
importstaticjava.lang.String.format;
20
-
21
19
importjava.io.IOException;
22
20
importjava.util.ArrayList;
23
21
importjava.util.Collection;
@@ -26,32 +24,149 @@ Licensed to the Apache Software Foundation (ASF) under one or more
26
24
importjava.util.List;
27
25
importjava.util.Objects;
28
26
importjava.util.function.Function;
27
+
importjava.util.function.Supplier;
29
28
30
29
importorg.apache.commons.cli.Option;
31
30
importorg.apache.commons.cli.OptionGroup;
32
31
importorg.apache.commons.cli.Options;
33
32
34
33
/**
35
-
* The class for help formatters provides the framework to link the {@link HelpAppendable} with the {@link OptionFormatter} and a default
36
-
* {@link TableDefinition} so to produce a standard format help page.
34
+
* Helps formatters provides the framework to link a {@link HelpAppendable} with a {@link OptionFormatter} and a default {@link TableDefinition} so to produce
35
+
* standardized format help output.
37
36
*
38
37
* @since 1.10.0
39
38
*/
40
39
publicabstractclassAbstractHelpFormatter {
41
40
42
-
/** The string to display at the beginning of the usage statement */
0 commit comments