commandHelp

open fun commandHelp(context: Context): String

The help text for this command.

You can set this by passing help to the CliktCommand constructor, or by overriding this method if you need to build the string lazily or access the terminal or context.

Example:

class Command: CliktCommand() {
override fun commandHelp(context: Context): String {
return context.theme.info("This is a command")
}
}