getenvInt

fun getenvInt(name: String, default: Int, minValue: Int = 1): Int

Return the value of an item in the running environment as an Int, or a default value if not found or if the value cannot be parsed as an Int.

Return

Int value of the environment variable or default

Parameters

name

name of the environment variable

default

default value

minValue

minimum value