requireObject

inline fun <T : Any> CliktCommand.requireObject(): <ERROR CLASS><CliktCommand, T>

Find the closest object of type T, or throw a NullPointerException