Package com.github.hypfvieh.cli.parser
Klasse StaticUtils
java.lang.Object
com.github.hypfvieh.cli.parser.StaticUtils
Utility bundling re-used static methods.
- Seit:
- 1.0.0 - 2022-05-05
- Autor:
- David M., Markus S.
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic StringformatOption(CmdArgOption<?> _arg, String _longOptPrefix, String _shortOptPrefix) Formats the given option for logging/exceptions.static StringformatOption(CmdArgOption<?> _arg, String _longOptPrefix, String _shortOptPrefix, String _joiningDelimiter) Formats the given option for logging/exceptions.
-
Methodendetails
-
formatOption
public static String formatOption(CmdArgOption<?> _arg, String _longOptPrefix, String _shortOptPrefix) Formats the given option for logging/exceptions.- Parameter:
_arg- argument to convert_longOptPrefix- prefix for long options_shortOptPrefix- prefix for short options- Gibt zurück:
- String or null if option was null
-
formatOption
public static String formatOption(CmdArgOption<?> _arg, String _longOptPrefix, String _shortOptPrefix, String _joiningDelimiter) Formats the given option for logging/exceptions.- Parameter:
_arg- argument to convert_longOptPrefix- prefix for long options_shortOptPrefix- prefix for short options_joiningDelimiter- delimiter used when short and long option is combined- Gibt zurück:
- String or null if option was null
- Seit:
- 1.0.4 - 2023-05-11
-