mirror of
https://github.com/mamoe/mirai.git
synced 2025-02-01 20:10:18 +08:00
Add util function systemProp
This commit is contained in:
parent
cccdb3cdf2
commit
36742a867f
@ -164,3 +164,6 @@ public inline fun <E> MutableList<E>.replaceAllKotlin(operator: (E) -> E) {
|
||||
li.set(operator(li.next()))
|
||||
}
|
||||
}
|
||||
|
||||
public fun systemProp(name: String, default: Boolean): Boolean =
|
||||
System.getProperty(name, default.toString())?.toBoolean() ?: default
|
Loading…
Reference in New Issue
Block a user