provideDelegate

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

Provides the property delegate implementation for count options. This method is called automatically by Kotlin's property delegation system. It registers the count option with the Arguments instance and returns a delegate that provides access to the count value (number of times the option was specified).

Return

A ReadOnlyProperty that provides access to the count value

Parameters

thisRef

The Arguments instance this count option belongs to

property

The property this delegate is assigned to