clikt / com.github.ajalt.clikt.parsers / OptionWithValuesParser / parseShortOpt

parseShortOpt

fun parseShortOpt(option: Option, name: String, argv: List<String>, index: Int, optionIndex: Int): ParseResult

Overrides OptionParser.parseShortOpt

Parse a single short option and its value.

Parameters

name - The name of the flag used to invoke this option

argv - The entire list of command line arguments for the command

index - The index of the option flag in argv, which may contain multiple short parameters.

optionIndex - The index of the option within argv\[index]