T4JDurationCoalescingConverter
class T4JDurationCoalescingConverter(val longHelp: Boolean = true, shouldThrow: Boolean = false, var validator: <Error class: unknown class><Duration<IsoUnit>> = null) : CoalescingConverter<Duration<IsoUnit>>
Coalescing argument converter for Time4J Duration arguments.
This converter will take individual duration specifiers ("1w", "2y", "3d" etc) until it no longer can, and then combine them into a single Duration.
Parameters
longHelp
Whether to send the user a long help message with specific information on how to specify durations.
See also
coalescedT4jDuration
parseT4JDuration
Properties
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open suspend override fun parse(parser: StringParser?, context: CommandContext, named: List<String>?): Int
Link copied to clipboard
Link copied to clipboard
open fun toDefaulting(defaultValue: Duration<IsoUnit>, outputError: Boolean, signatureType: Key?, showTypeInSignature: Boolean?, errorType: Key?, nestedValidator: Validator<Duration<IsoUnit>>): DefaultingCoalescingConverter<Duration<IsoUnit>>
Link copied to clipboard
open fun toOptional(signatureType: Key?, showTypeInSignature: Boolean?, errorType: Key?, outputError: Boolean, nestedValidator: Validator<Duration<IsoUnit>?>): OptionalCoalescingConverter<Duration<IsoUnit>>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun withBuilder(builder: CoalescingConverterBuilder<Duration<IsoUnit>>): CoalescingConverter<Duration<IsoUnit>>