FlaggedOptions
, UnflaggedOptions
,
and QualifiedSwitches
may all be declared as
"Lists" that accept multiple values separated by a specified
character. The default list separator is java.io.File.pathSeparatorChar
.
The Option
's StringParser
will be called once for each list item.
For example, a FlaggedOption
'x' with
an IntegerStringParser
can be configured with
setList(true)
and setListSeparator(',')
.
It would then accept options from the command line such as "-x
42", "-x=42,2112", or "-x
3,1,4,1,5,9". In this example, the values would be obtained
from the JSAPResult via getIntegerArray()
.