arc allows you to collect multiple values from the command line into a single argument for your comamnd. To do this, you use the collection types:
listcan accept any number of values, you won't be able to add additional arguments after
names. Any other positional arguments would have to come before
list, but will filter out any non-unique elements.
list, but with some additional functionality.
According to PEP 484:
tuplerepresents an arbitrarily sized tuple of any type. In arc, this will behave the same as
tuple[int, ...]represents an arbitrarily sized tuple of integers. In arc, this will behave the same as
tuple[int, int]represents a size-two tuple of integers. In arc, this behavior is unique to
tupleas the parameter will only select 2 values from input.
Collections can be sub-typed so that each item will be converted to the proper type:
Collections as Options¶
When used as an option, it allows the option to be used multiple times: