MordantHelpFormatter

open class MordantHelpFormatter(context: Context, requiredOptionMarker: String? = null, showDefaultValues: Boolean = false, showRequiredTag: Boolean = false) : AbstractHelpFormatter<Widget>

Clikt's default HelpFormatter which uses Mordant to render its output.

To customize help text, you can create a subclass and set it as the helpFormatter on your command's context.

Constructors

Link copied to clipboard
constructor(context: Context, requiredOptionMarker: String? = null, showDefaultValues: Boolean = false, showRequiredTag: Boolean = false)

Functions

Link copied to clipboard
open override fun formatHelp(error: UsageError?, prolog: String, epilog: String, parameters: List<HelpFormatter.ParameterHelp>, programName: String): String
Link copied to clipboard
open fun renderWrappedText(text: String): Widget