Option

class Option(val hasArgs: Boolean, val names: String, action: (Option, String) -> Unit)

The option class is designed to handle the program arguments.

Author

KKoishi_

Parameters

name

the Option name.

hasArgs

if the option has extra argument.

action

the action.

Constructors

Link copied to clipboard
constructor(hasArgs: Boolean, vararg names: String, action: (Option, String) -> Unit)

Properties

Link copied to clipboard
Link copied to clipboard
val names: Array<out String>

Functions

Link copied to clipboard
Link copied to clipboard
operator fun invoke(extraArg: String = "")

Invoke the option.

Link copied to clipboard
Link copied to clipboard
open override fun toString(): String