clikt / com.github.ajalt.clikt.core / Context / findObject

findObject

inline fun <reified T> findObject(): T?

Find the closest object of type T

inline fun <reified T> findObject(defaultValue: () -> T): T

Find the closest object of type T, setting this.obj if one is not found.