Package com.beust.jcommander
Class UnixStyleUsageFormatter
java.lang.Object
com.beust.jcommander.DefaultUsageFormatter
com.beust.jcommander.UnixStyleUsageFormatter
- All Implemented Interfaces:
IUsageFormatter
A unix-style usage formatter. This works by overriding and modifying the output of
appendAllParametersDetails(StringBuilder, int, String, List)
which is inherited from
DefaultUsageFormatter
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
appendAllParametersDetails
(StringBuilder out, int indentCount, String indent, List<ParameterDescription> sortedParameters) Appends the details of all parameters in the given order to the argument string builder, indenting every line with indentCount-many indent.Methods inherited from class com.beust.jcommander.DefaultUsageFormatter
appendCommands, appendMainLine, getCommandDescription, getI18nString, s, usage, usage, usage, usage, usage, wrapDescription, wrapDescription
-
Constructor Details
-
UnixStyleUsageFormatter
-
-
Method Details
-
appendAllParametersDetails
public void appendAllParametersDetails(StringBuilder out, int indentCount, String indent, List<ParameterDescription> sortedParameters) Appends the details of all parameters in the given order to the argument string builder, indenting every line with indentCount-many indent.- Overrides:
appendAllParametersDetails
in classDefaultUsageFormatter
- Parameters:
out
- the builder to append toindentCount
- the amount of indentation to applyindent
- the indentationsortedParameters
- the parameters to append to the builder
-