Arguments

interface Arguments

Functions

Link copied to clipboard
abstract fun dump()

Used for debugging - lists all parameters.

Link copied to clipboard
abstract fun flag(shortName: Char): Boolean

Is the single-character flag parameter present?

abstract fun flag(longName: String): Boolean

Is the multi-character flag parameter present?

open fun flag(shortName: Char, longName: String): Boolean

Is either the single-character or the equivalent multi-character flag present.

Link copied to clipboard
open operator fun get(name: String): String?

A Kotlin operator equivalent to value. i.e.

Link copied to clipboard
abstract fun remainder(): List<String>

Remaining (unnamed) parameters.

Link copied to clipboard
abstract fun value(name: String): String?

The value of a named parameter. If multiple values are present, then only the first is returned.

Link copied to clipboard
abstract fun values(name: String): List<String>

The values of a named parameter, which is expected to have multiple values. If no values are found, this returns an empty list.