clikt / com.github.ajalt.clikt.parameters.arguments / ProcessedArgument / copy

copy

fun copy(transformValue: ArgValueTransformer, transformAll: ArgCallsTransformer, validator: ArgValidator, name: String = this.name, nvalues: Int = this.nvalues, required: Boolean = this.required, help: String = this.help, helpTags: Map<String, String> = this.helpTags, completionCandidatesWithDefault: ValueWithDefault<CompletionCandidates> = this.completionCandidatesWithDefault): ProcessedArgument

Create a new argument that is a copy of this one with different transforms.

fun copy(validator: ArgValidator = this.transformValidator, name: String = this.name, nvalues: Int = this.nvalues, required: Boolean = this.required, help: String = this.help, helpTags: Map<String, String> = this.helpTags, completionCandidatesWithDefault: ValueWithDefault<CompletionCandidates> = this.completionCandidatesWithDefault): ProcessedArgument

Create a new argument that is a copy of this one with the same transforms.