clikt / com.github.ajalt.clikt.parameters.arguments / wrapValue

wrapValue

@JvmName(“rawWrapValue”) fun RawArgument.~~wrapValue~~(wrapper: (String) -> Any): RawArgument Deprecated: Cannot wrap an argument that isn’t converted

inline fun Any, T2 : Any> ProcessedArgument.~~wrapValue~~(crossinline wrapper: (T1) -> T2): ProcessedArgument Deprecated: Use convert instead

Wrap the argument’s values after a conversion is applied.

This can only be called on an argument after convert or a conversion function like int.

If you just want to perform checks on the value without converting it to another type, use validate instead.