Package com.github.hypfvieh.cli.parser
Class StaticUtils
java.lang.Object
com.github.hypfvieh.cli.parser.StaticUtils
Utility bundling re-used static methods.
- Since:
- 1.0.0 - 2022-05-05
- Author:
- David M., Markus S.
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringformatOption(CmdArgOption<?> _arg, String _longOptPrefix, String _shortOptPrefix) Formats the given option for logging/exceptions.
-
Method Details
-
formatOption
public static String formatOption(CmdArgOption<?> _arg, String _longOptPrefix, String _shortOptPrefix) Formats the given option for logging/exceptions.- Parameters:
_arg- argument to convert_longOptPrefix- prefix for long options_shortOptPrefix- prefix for short options- Returns:
- String or null if option was null
-