Last updated
Last updated
Sometimes it is helpful for an argument (a Context property) to be specified multiple times. We demonstrate this by implementing the Math SUM
command that builds the total of any number of /Value
arguments:
The magic is the AllowMultiple
tag on the OptionDescriptor. It references a List that takes the arguments of the same tag. By specifying AllowMultipleSplit
characters you can even specify multiple arguemnts in a row.
Note: The properties that
AllowMultiple
must be of type string, while the List property is of type .
Allow an argument to be provided many times