clikt / com.github.ajalt.clikt.parsers / OptionParser / ParseResult

ParseResult

data class ParseResult

Parameters

consumedCount - The number of items in argv that were consumed. This number must be >= 1 if the entire option was consumed, or 0 if there are other options in the same index (e.g. flag options)

invocation - The data from this invocation.

Constructors

<init>

ParseResult(consumedCount: Int, name: String, values: List<String>)
ParseResult(consumedCount: Int, invocation: Invocation)

Properties

consumedCount

val consumedCount: Int

The number of items in argv that were consumed. This number must be >= 1 if the entire option was consumed, or 0 if there are other options in the same index (e.g. flag options)

invocation

val invocation: Invocation

The data from this invocation.