default

fun <T : Any> ProcessedArgument<T, T>.default(value: T, defaultForHelp: String = value.toString()): ArgumentDelegate<T>

If the argument is not given, use value instead of throwing an error.

This must be applied after all other transforms.

You can customize how the default is shown to the user with defaultForHelp.

Example:

val arg: Pair<Int, Int> by argument().int().pair().default(1 to 2)