clikt / com.github.ajalt.clikt.output / PlaintextHelpFormatter / formatUsage

formatUsage

open fun formatUsage(parameters: List<ParameterHelp>, programName: String): String

Overrides HelpFormatter.formatUsage

Create the one-line usage information for a command.

This is usually displayed when incorrect input is encountered, and as the first line of the full help.