classorg.draftcode.argot
ArgumentBuilder<T>
Builds a positional argument, named after the property it is assigned to. The call you end with decides the property's type:
end here and the argument is required and non-null;
optional makes it nullable, resolving to
nullwhen absent;multiple captures all remaining positionals into a
List<T>.
Refine the value type (.int(), .enum<E>(), .convert(...)) before choosing cardinality.
Functions
multiple
Captures all remaining positionals into a List<T>. Must be the last argument declared.
provideDelegate
open operator override fun provideDelegate(thisRef: Arguments, property: KProperty<*>): ReadOnlyProperty<Arguments, T>
ArgumentBuilders.kt