Class DefaultHelpFormatter
java.lang.Object
com.github.hypfvieh.cli.parser.formatter.DefaultHelpFormatter
- All Implemented Interfaces:
IUsageFormatter
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
DefaultHelpFormatter
public DefaultHelpFormatter()
-
-
Method Details
-
format
public String format(List<CmdArgOption<?>> _options, String _longOptPrefix, String _shortOptPrefix, String _mainClassName) Formats the given options as proper help-text.
Given _mainClassName is not used and can be null.- Specified by:
formatin interfaceIUsageFormatter- Parameters:
_options- registered options, maybe empty - never null_longOptPrefix- prefix for long options_shortOptPrefix- prefix for short options_mainClassName- main class name, maybe null- Returns:
- formatted String
-