clikt / com.github.ajalt.clikt.core / CliktCommand / registerOption

registerOption

fun registerOption(option: Option): Unit

Register an option with this command.

This is called automatically for the built in options, but you need to call this if you want to add a custom option.

open fun registerOption(option: GroupableOption): Unit

Register an option with this command or group.

This is called automatically for the built in options, but you need to call this if you want to add a custom option.