Klasse DefaultUsageFormatter
java.lang.Object
com.github.hypfvieh.cli.parser.formatter.DefaultUsageFormatter
- Alle implementierten Schnittstellen:
IUsageFormatter
Default usage formatter used when no other formatter was specified
- Seit:
- 1.0.0 - 2022-05-05
- Autor:
- David M., Markus S.
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
-
Konstruktordetails
-
DefaultUsageFormatter
public DefaultUsageFormatter()
-
-
Methodendetails
-
format
public String format(List<CmdArgOption<?>> _options, String _longOptPrefix, String _shortOptPrefix, String _mainClassName) Beschreibung aus Schnittstelle kopiert:IUsageFormatterCalled to retrieve a formatted usage output.Output should be properly formatted including line-feeds etc.
- Angegeben von:
formatin SchnittstelleIUsageFormatter- Parameter:
_options- registered options, maybe empty - never null_longOptPrefix- prefix for long options_shortOptPrefix- prefix for short options_mainClassName- main class name, maybe null- Gibt zurück:
- formatted String
-