provideDelegate

open operator override fun provideDelegate(thisRef: Arguments, property: KProperty<*>): ReadOnlyProperty<Arguments, T>(source)

Provides the property delegate implementation for command-line options. This method is called automatically by Kotlin's property delegation system. It registers the option with the Arguments instance and returns a delegate that provides access to the parsed value.

Return

A ReadOnlyProperty that provides access to the parsed value

Parameters

thisRef

The Arguments instance this option belongs to

property

The property this delegate is assigned to