Count Builder
Builder for creating command-line count options with various configurations and constraints.
This class provides a fluent API for defining count options that track the number of times an option appears on the command line, including constraints and help text.
Functions
Requires at least n occurrences of this count option.
Ensures at least one of this count option and the specified properties is provided.
Ensures at most one of this count option and the specified properties is provided.
Specifies that this count option conflicts with the specified properties.
Ensures exactly one of this count option and the specified properties is provided.
Sets help text for this count option.
Marks this count option as hidden from help output.
Restricts this count option to be available only in the specified domains.
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).
Marks this count option as required, equivalent to atLeast(1).
Requires that this count option be present when all of the specified properties are present.
Requires that this count option be present along with any of the specified properties.
Requires that this count option be present when the specified property matches the given predicate.
Controls whether this count option requires a value.