fun <EachT : Any, ValueT> NullableOption<EachT, ValueT>.default(value: EachT, defaultForHelp: String = value.toString()): OptionWithValues<EachT, EachT, ValueT>

If the option is not called on the command line (and is not set in an envvar), use value for the option.

This must be applied after all other transforms.

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

If you need to compute the default lazily, use defaultLazy.


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