in plugin/src/main/kotlin/com/nishtahir/CargoExtension.kt [117:129]
fun getFlagProperty(camelCaseName: String, snakeCaseName: String, ifUnset: Boolean): Boolean {
val propVal = getProperty(camelCaseName, snakeCaseName)
if (propVal == "1" || propVal == "true") {
return true
}
if (propVal == "0" || propVal == "false") {
return false
}
if (propVal == null || propVal == "") {
return ifUnset
}
throw GradleException("Illegal value for property \"$camelCaseName\" / \"$snakeCaseName\". Must be 0/1/true/false if set")
}