clikt / com.github.ajalt.clikt.parsers / FlagOptionParser / parseLongOpt

parseLongOpt

fun parseLongOpt(option: Option, name: String, argv: List<String>, index: Int, explicitValue: String?): ParseResult

Overrides OptionParser.parseLongOpt

Parse a single long 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 an '=' with the first value